[NTG-context] Switching fonts changes framedtext justification

2022-04-02 Thread Thangalin via ntg-context
Hi all,

The following code produces framed text areas, each having different
justification:

\definefont [TextFontEmoji] [OpenSansEmoji]
\definefontfamily [TextFont] [rm] [LibreBaskerville]
\setupbodyfont [TextFont]

\starttext
  \startframedtext
\TextFontEmoji
\input ward
  \stopframedtext

  \startframedtext
\input ward
  \stopframedtext
\stoptext

How would you ensure that both text areas remain fully justified?

Thank you!
___
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
___


Re: [NTG-context] Spellchecking for ConTeXt user on a Windows platform

2022-04-02 Thread Tomáš V via ntg-context

Hey Amine,

LibreOffice (along with loads of other software) uses Hunspell 
dictionaries for spell-checking. You can get them here [1].


Hunspell [2] is a spell checker similar to Aspell. (A Windows port is 
available in the EZWinPorts [3].) Unlike Aspell, it can’t parse TeX 
files. One way around this is to convert the TeX files into plain text 
(maybe using Pandoc or DeTeX?) and spell-checking just the text. I tried 
this, but I found it quite cumbersome and since switched to the build-in 
spell-checker in my editor.


PDF files could probably be spell-checked in a similar way.

Tomáš

[1]: https://github.com/LibreOffice/dictionaries
[2]: http://hunspell.github.io/
[3]: 
https://www.gnu.org/software/emacs/manual/html_node/efaq-w32/EZWinPorts.html


On 02/04/2022 15:19, A A via ntg-context wrote:

Hi Alain,

Yes that's what I mean, spellchecking any content which is not a control 
sequence. That should include things like section titles and footnotes. 
Though I'm afraid that might be asking for too much.


I'd rather not make it part of my editor (I use vim) and have it as an 
extra step which I can add to something like a Makefile.


Do I need to install all of Libreoffice to gain access to the files you 
mention or is there an easier way?


Amine

___
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
___


Re: [NTG-context] Spellchecking for ConTeXt user on a Windows platform

2022-04-02 Thread A A via ntg-context
Hi Alain,

Yes that's what I mean, spellchecking any content which is not a control
sequence. That should include things like section titles and footnotes.
Though I'm afraid that might be asking for too much.

I'd rather not make it part of my editor (I use vim) and have it as an
extra step which I can add to something like a Makefile.

Do I need to install all of Libreoffice to gain access to the files you
mention or is there an easier way?

Amine

On Sat, 2 Apr 2022, 13:42 Alain Delmotte via ntg-context, <
ntg-context@ntg.nl> wrote:

> Hi Amine!
>
> Do you mean spellchecking the content of your document (not the ConTeXt
> commands)?
>
> This depends on your editor!
> I use TeXworks and there is spellchecking using the dictionaries of
> LibreOffice. You should copy the .aff and .dicfiles from "C:\Program
> Files\LibreOffice\share\extensions\..." subdirectories to the 
> "C:\Users\\AppData\Roaming\TUG\TeXworks\dictionaries"
> folder (created when installing TeXworks), (I think not in subfolders for
> the different languages).
> You can then ask for spellchecking when you type or not.
>
> I hope this help,
>
> Alain
> Le 2/04/2022 à 09:23, A A via ntg-context a écrit :
>
> Dear All,
>
> I'm currently using ConTeXt on a windows machine. I'd like to incorporate
> some sort of automated spell-checking in my workflow. I've seen that there
> are two options:
>
>1. spell check the .tex source file
>2. spell check the resulting pdf
>
> For the first option many resources online seem to suggest using *aspell.
> aspell* is however not maintained for windows and therefore hopelessly
> out of date. Furthermore many resources online seem to suggest skipping TeX
> and LaTeX control sequences does not always succeed. So I can only imagine
> how poorly it deals with ConTeXt control sequences.
>
> The second option as shown on this StackExchange
> 
>  post
> suggests using *\loadspellchecklist. *However, on of the arguments to
> this command includes a text file listing - and brace yourself - *all of
> the correctly spelled words*. I find this both an amusing and tragic
> proposition, since I basically need to spellcheck based on *every word in
> a given language.*
>
> What options are out there for someone who would like to do serious
> spellchecking using ConTeXt on Windows platform, using Powershell as my
> command line?
>
> Regards,
>
> Amine
>
> ___
> 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
> ___
>
>
> ___
> 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
>
> ___
>
___
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
___


Re: [NTG-context] mkiv

2022-04-02 Thread Pablo Rodriguez via ntg-context
On 4/2/22 09:40, Hans Hagen via ntg-context wrote:
> [..]
> and how about
>
> context --luatex --generate

Many thanks for your reply, Hans.

I’m afraid it doesn’t work. It still generates data under
$HOME/.texlive2021/, but it tries to read data (to generate the format
file) from $HOME/backup-context/01062022_context/, which is a backup I
have, instead of $HOME/context (which is the actual directory where
ConTeXt is installed).

Even with the HOME/backup-context/ directory hidden, I get the following
error when Irun "context --luatex document" (after having run "context
--luatex --generate"):

system  > lua > loading of file
'context/tex/texmf-context/tex/context/base/mkiv/luat-exe.lua' failed:
cannot open
context/tex/texmf-context/tex/context/base/mkiv/luat-exe.lua: No such
file or directory
resolvers   > lua > loading file
'context/tex/texmf-context/tex/context/base/mkiv/luat-exe.lua' failed

error loading file: luat-exe.lua (aborting)resolvers   | formats |
resolvers   | formats | binary path  : /usr/bin
resolvers   | formats | format path  :
/home/ousia/.texlive2021/texmf-var/luatex-cache/context/d10b607aa0e9d13dde6602f491b76cbc/formats/luatex
resolvers   | formats | luatex engine: luatex
resolvers   | formats | lua startup file :
/home/ousia/context/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua
resolvers   | formats | context file :
/home/ousia/context/tex/texmf-context/tex/context/base/mkiv/cont-en.mkiv
resolvers   | formats | run time : 0.100 seconds
resolvers   | formats | return value : okay
resolvers   | formats |
mtx-context | error, no format found with name: cont-en, aborting
system  | total runtime: 1.505 seconds

Many thanks for your help,

Pablo
___
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
___


Re: [NTG-context] Spellchecking for ConTeXt user on a Windows platform

2022-04-02 Thread Alain Delmotte via ntg-context

  
  
Hi Amine!
Do you mean spellchecking the content
of your document (not the ConTeXt commands)?
This depends on your editor! 
I use TeXworks and there is spellchecking using the dictionaries
of LibreOffice. You should copy the .aff and .dicfiles from
"C:\Program Files\LibreOffice\share\extensions\..."
subdirectories to the "C:\Users\\AppData\Roaming\TUG\TeXworks\dictionaries"
folder (created when installing TeXworks), (I think not in
subfolders for the different languages).
You can then ask for spellchecking when you type or not.
I hope this help,
Alain
  
Le 2/04/2022 à 09:23, A A via
  ntg-context a écrit :


  
  Dear All,


I'm currently using ConTeXt on a windows machine. I'd like
  to incorporate some sort of automated spell-checking in my
  workflow. I've seen that there are two options:

  
spell check the .tex source file
spell check the resulting pdf
  
  For the first option many resources online seem to
suggest using aspell. aspell is however not
maintained for windows and therefore hopelessly out of date.
Furthermore many resources online seem to suggest skipping
TeX and LaTeX control sequences does not always succeed. So
I can only imagine how poorly it deals with ConTeXt control
sequences.
  
  
  The second option as shown on this StackExchange post suggests
using \loadspellchecklist. However, on of the
arguments to this command includes a text file listing - and
brace yourself - all of the correctly spelled words.
I find this both an amusing and tragic proposition, since I
basically need to spellcheck based on every word in a
  given language.


  
What options are out there for someone who would like to do
  serious spellchecking using ConTeXt on Windows platform, using
  Powershell as my command line?


Regards,


Amine
  
  
  
  ___
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
___


  

___
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
___


Re: [NTG-context] mkiv

2022-04-02 Thread Hans Hagen via ntg-context

On 4/1/2022 9:19 PM, Denis Maier via ntg-context wrote:

Same here... I haven't managed to run mkiv for months. Not a huge deal, but 
anyway.

Best,
Denis

Von: ntg-context  im Auftrag von Pablo Rodriguez via 
ntg-context 
Gesendet: Freitag, 1. April 2022 20:37:30
An: Hans Hagen via ntg-context
Cc: Pablo Rodriguez
Betreff: Re: [NTG-context] mkiv

On 4/1/22 18:20, Hans Hagen via ntg-context wrote:

[...]
So, today is the day we kind of formally freeze MKIV.


Just a comment on MkIV.

I don’t remember exactly, but I’m afraid that "context --luatex
document" hasn’t been working on my computers (either running Linux or
Windows) for months now.

This isn’t important for me, but just in case it may be relevant for you.

If I run "context --luatex document", I get a new directory
'$HOME/.texlive2021/texmf-var' created (which includes a "luatex-cache"
directory inside)

When I run "mtxrun --generate", all required files are generated in
"$HOME/context/tex/texmf-cache/luametatex-cache".

I wonder why "mtrun --generate" doesn’t generate a "luatex-cache"
directory in the same directory containing "luametatex-cache".


and how about

context --luatex --generate


BTW, the '$HOME/.texlive2021/texmf-var/luatex-cache/" directory only
contains an empty 'context/d10b607aa0e9d13dde6602f491b76cbc/trees/' path.

Just in case it may be relevant and many thanks for ConTeXt,

Pablo
___
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
___
___
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
___



--

-
  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
___


[NTG-context] Spellchecking for ConTeXt user on a Windows platform

2022-04-02 Thread A A via ntg-context
Dear All,

I'm currently using ConTeXt on a windows machine. I'd like to incorporate
some sort of automated spell-checking in my workflow. I've seen that there
are two options:

   1. spell check the .tex source file
   2. spell check the resulting pdf

For the first option many resources online seem to suggest using *aspell.
aspell* is however not maintained for windows and therefore hopelessly out
of date. Furthermore many resources online seem to suggest skipping TeX and
LaTeX control sequences does not always succeed. So I can only imagine how
poorly it deals with ConTeXt control sequences.

The second option as shown on this StackExchange

post
suggests using *\loadspellchecklist. *However, on of the arguments to this
command includes a text file listing - and brace yourself - *all of the
correctly spelled words*. I find this both an amusing and tragic
proposition, since I basically need to spellcheck based on *every word in a
given language.*

What options are out there for someone who would like to do serious
spellchecking using ConTeXt on Windows platform, using Powershell as my
command line?

Regards,

Amine
___
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
___