ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* KeenWrite 2.0
@ 2021-05-10  5:40 Thangalin
  2021-05-10  9:46 ` Floris van Manen
  2021-05-11 14:57 ` Nicola
  0 siblings, 2 replies; 6+ messages in thread
From: Thangalin @ 2021-05-10  5:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 554 bytes --]

Happy to announce that invoking ConTeXt from KeenWrite is now possible.

Here's a screenshot showing three different PDFs compiled from the same
plain text document:

https://github.com/DaveJarvis/keenwrite/blob/master/docs/screenshots.md#pdf-themes

Here are the installation instructions for ConTeXt (basically, make sure
that the "context" executable can be found in the system PATH):

https://github.com/DaveJarvis/keenwrite/blob/master/docs/typesetting.md

KeenWrite downloads:

https://github.com/DaveJarvis/keenwrite#download

Stay safe everyone!

[-- Attachment #1.2: Type: text/html, Size: 1031 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: KeenWrite 2.0
  2021-05-10  5:40 KeenWrite 2.0 Thangalin
@ 2021-05-10  9:46 ` Floris van Manen
  2021-05-10 12:34   ` Hans Hagen
  2021-05-10 18:04   ` Thangalin
  2021-05-11 14:57 ` Nicola
  1 sibling, 2 replies; 6+ messages in thread
From: Floris van Manen @ 2021-05-10  9:46 UTC (permalink / raw)
  To: ntg-context



On 10/05/2021 07:40, Thangalin wrote:
> https://github.com/DaveJarvis/keenwrite#download 
> <https://github.com/DaveJarvis/keenwrite#download>
> 
> Stay safe everyone!


When launching from

Linux vmz 5.11.0-7614-generic #15~1618626693~20.10~ecb25cd-Ubuntu SMP 
Thu Apr 22 16:00:45 UTC  x86_64 x86_64 x86_64 GNU/Linux

I get a warning:

$ keenwrite.bin
OpenJDK 64-Bit Server VM warning: Option --illegal-access is deprecated 
and will be removed in a future release.


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: KeenWrite 2.0
  2021-05-10  9:46 ` Floris van Manen
@ 2021-05-10 12:34   ` Hans Hagen
  2021-05-10 18:10     ` Thangalin
  2021-05-10 18:04   ` Thangalin
  1 sibling, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2021-05-10 12:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Floris van Manen

On 5/10/2021 11:46 AM, Floris van Manen wrote:
> 
> 
> On 10/05/2021 07:40, Thangalin wrote:
>> https://github.com/DaveJarvis/keenwrite#download 
>> <https://github.com/DaveJarvis/keenwrite#download>
>>
>> Stay safe everyone!
> 
> 
> When launching from
> 
> Linux vmz 5.11.0-7614-generic #15~1618626693~20.10~ecb25cd-Ubuntu SMP 
> Thu Apr 22 16:00:45 UTC  x86_64 x86_64 x86_64 GNU/Linux
> 
> I get a warning:
> 
> $ keenwrite.bin
> OpenJDK 64-Bit Server VM warning: Option --illegal-access is deprecated 
> and will be removed in a future release.
on windoes:

 >java.exe --illegal-access=permit -jar keenwrite.jar
OpenJDK 64-Bit Server VM warning: Option --illegal-access is deprecated 
and will be removed in a future release.
KeenWrite version 2.0.0
Copyright 2016-2021 White Magic Software, Ltd.
Portions copyright 2015-2020 Karl Tauber.
Exception in thread "main" java.lang.NoClassDefFoundError: 
javafx/beans/property/ReadOnlyProperty
         at com.keenwrite.Launcher.main(Launcher.java:27)
Caused by: java.lang.ClassNotFoundException: 
javafx.beans.property.ReadOnlyProperty
         at 
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:636)
         at 
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:182)
         at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:519)
         ... 1 more


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: KeenWrite 2.0
  2021-05-10  9:46 ` Floris van Manen
  2021-05-10 12:34   ` Hans Hagen
@ 2021-05-10 18:04   ` Thangalin
  1 sibling, 0 replies; 6+ messages in thread
From: Thangalin @ 2021-05-10 18:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1535 bytes --]

Thanks Floris.

https://github.com/DaveJarvis/keenwrite#other

That's a known issue due to Java's transition to a modular architecture. It
means that a third-party library is using reflection to access behaviour in
a Java class that was designed to be off-limits. Starting from Java 9,
these types of reflection calls have been deprecated. In this particular
case, it's fine, but this third-party library needs to be updated soon.

Cheers!

On Mon, May 10, 2021 at 2:47 AM Floris van Manen <vm@klankschap.nl> wrote:

>
>
> On 10/05/2021 07:40, Thangalin wrote:
> > https://github.com/DaveJarvis/keenwrite#download
> > <https://github.com/DaveJarvis/keenwrite#download>
> >
> > Stay safe everyone!
>
>
> When launching from
>
> Linux vmz 5.11.0-7614-generic #15~1618626693~20.10~ecb25cd-Ubuntu SMP
> Thu Apr 22 16:00:45 UTC  x86_64 x86_64 x86_64 GNU/Linux
>
> I get a warning:
>
> $ keenwrite.bin
> OpenJDK 64-Bit Server VM warning: Option --illegal-access is deprecated
> and will be removed in a future release.
>
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 2741 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: KeenWrite 2.0
  2021-05-10 12:34   ` Hans Hagen
@ 2021-05-10 18:10     ` Thangalin
  0 siblings, 0 replies; 6+ messages in thread
From: Thangalin @ 2021-05-10 18:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2072 bytes --]

Running from the command-line requires the full edition of Liberica JDK,
which includes JavaFX. See:

https://github.com/DaveJarvis/keenwrite#other
https://bell-sw.com/pages/downloads/?version=java-16

Other OpenJDK versions do not include JavaFX. (JavaFX can be installed
separately for other OpenJDK versions, but it's a bit of a pain.) The
decision to remove JavaFX from the default Java distribution kind of pulled
the rug out from under a number of projects.

https://dave.autonoma.ca/blog/2020/06/29/write-once-build-anywhere/

Cheers!

On Mon, May 10, 2021 at 5:34 AM Hans Hagen <j.hagen@xs4all.nl> wrote:

> On 5/10/2021 11:46 AM, Floris van Manen wrote:
> >
> >
> > On 10/05/2021 07:40, Thangalin wrote:
> >> https://github.com/DaveJarvis/keenwrite#download
> >> <https://github.com/DaveJarvis/keenwrite#download>
> >>
> >> Stay safe everyone!
> >
> >
> > When launching from
> >
> > Linux vmz 5.11.0-7614-generic #15~1618626693~20.10~ecb25cd-Ubuntu SMP
> > Thu Apr 22 16:00:45 UTC  x86_64 x86_64 x86_64 GNU/Linux
> >
> > I get a warning:
> >
> > $ keenwrite.bin
> > OpenJDK 64-Bit Server VM warning: Option --illegal-access is deprecated
> > and will be removed in a future release.
> on windoes:
>
>  >java.exe --illegal-access=permit -jar keenwrite.jar
> OpenJDK 64-Bit Server VM warning: Option --illegal-access is deprecated
> and will be removed in a future release.
> KeenWrite version 2.0.0
> Copyright 2016-2021 White Magic Software, Ltd.
> Portions copyright 2015-2020 Karl Tauber.
> Exception in thread "main" java.lang.NoClassDefFoundError:
> javafx/beans/property/ReadOnlyProperty
>          at com.keenwrite.Launcher.main(Launcher.java:27)
> Caused by: java.lang.ClassNotFoundException:
> javafx.beans.property.ReadOnlyProperty
>          at
>
> java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:636)
>          at
>
> java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:182)
>          at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:519)
>          ... 1 more
>
>
>

[-- Attachment #1.2: Type: text/html, Size: 3150 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: KeenWrite 2.0
  2021-05-10  5:40 KeenWrite 2.0 Thangalin
  2021-05-10  9:46 ` Floris van Manen
@ 2021-05-11 14:57 ` Nicola
  1 sibling, 0 replies; 6+ messages in thread
From: Nicola @ 2021-05-11 14:57 UTC (permalink / raw)
  To: ntg-context

On 2021-05-10, Thangalin <thangalin@gmail.com> wrote:
> Happy to announce that invoking ConTeXt from KeenWrite is now possible.

Cool. To make it easier to install in macOS, I have quickly cooked a
couple of Homebrew formulas (see below). Use like this:

    cd <directory containing the scripts>
    brew install ./zulufx16.rb
    brew install ./keenwrite.rb
    keenwrite

Nicola

############################################################
# Save as zulufx16.rb
############################################################
    cask "zulufx16" do
      version "16.0.1,16.30.15-ca"

      if Hardware::CPU.intel?
        sha256 "cbb3b96d80a0675893f21dc51ba3f532049c501bd7dc4c8d1ee930e63032c745"

        url "https://cdn.azul.com/zulu/bin/zulu#{version.after_comma}-fx-jdk#{version.before_comma}-macosx_x64.tar.gz",
          referer: "https://www.azul.com/downloads/zulu/zulu-mac/"
      else
        sha256 "6b66194ee69ac0abc28a6fb00cad37fc29a8b5085776cfbaeebf4a600b03a16e"

        url "https://cdn.azul.com/zulu/bin/zulu#{version.after_comma}-fx-jdk#{version.before_comma}-macosx_aarch64.tar.gz",
          referer: "https://www.azul.com/downloads/zulu/zulu-mac/"
      end

      name "ZuluFX 16"
      desc "Azul Zulu Java 16 Standard Edition Development Kit"
      homepage "https://www.azul.com/downloads/zulu/zulu-mac/"

      depends_on macos: ">= :yosemite"

      artifact "zulu16.30.15-ca-fx-jdk16.0.1-macosx_x64/zulu-16.jdk", target: "/Library/Java/JavaVirtualMachines/zulu-16.jdk"

      zap delete: "/Library/Java/JavaVirtualMachines/zulu-16.jdk"
    end

############################################################


############################################################
# Save as keenwrite.rb
############################################################
    class Zulufx16Requirement < Requirement
      fatal true
      satisfy(build_env: false) { Dir.exist?("/Library/Java/JavaVirtualMachines/zulu-16.jdk/Contents/Home") }
      def message
        <<~EOS
          Execute `brew install --cask zulufx16` before installing Keenwrite.
        EOS
      end
    end

    class Keenwrite < Formula
      desc "Java-based desktop text editor with live preview, string interpolation, and formulas"
      homepage "https://github.com/DaveJarvis/keenwrite"
      url "https://github.com/DaveJarvis/keenwrite/releases/download/2.0.0/keenwrite.jar"
      version "2.0.0"
      sha256 "259743af0728502e89abac043973ef5c213573183ba71ba93accb2a330f0e7a8"
      head "https://github.com/DaveJarvis/keenwrite.git"

      def install
        java_home = "/Library/Java/JavaVirtualMachines/zulu-16.jdk/Contents/Home"
        ENV["JAVA_HOME"] = java_home
        libexec.install "keenwrite.jar"
        (bin/"keenwrite").write <<~EOS
          #!/bin/bash
          export JAVA_HOME="#{java_home}"
          exec "${JAVA_HOME}/bin/java" --illegal-access=permit -jar "/usr/local/Cellar/keenwrite/#{version}/libexec/keenwrite.jar" "$@"
        EOS
      end

      test do
        false
      end
    end
############################################################


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-05-11 14:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-10  5:40 KeenWrite 2.0 Thangalin
2021-05-10  9:46 ` Floris van Manen
2021-05-10 12:34   ` Hans Hagen
2021-05-10 18:10     ` Thangalin
2021-05-10 18:04   ` Thangalin
2021-05-11 14:57 ` Nicola

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).