Re: [NTG-context] Does the ConTeXt distro come with a PDFViewer?

2021-10-09 Thread Ramkumar KB via ntg-context
All,

Thanks for the tips. SumatraPDF worked well as it updates as the underlying
PDF is refreshed by ConTeXt - which makes the dev-preview cycle really
quick.

I will compile all the tips in this thread into the Wiki.

best regards,
Ramkumar

On Sun, Oct 10, 2021 at 12:53 AM Henri Menke via ntg-context <
ntg-context@ntg.nl> wrote:

> On Sat, 2021-10-09 at 18:47 +0200, Hans Hagen via ntg-context wrote:
> > On 10/9/2021 3:07 PM, Ramkumar KB via ntg-context wrote:
> > > Hello Community,
> > >
> > > If my memory serves me correctly, I might have noticed (in one of the
> > > presentations during the recent ConTeXt meeting) that the distro
> > > comes
> > > with a PDFViewer. Is that a correct assumption?
> > >
> > > I am currently using a VSCode extension for PDFViewing but it does
> > > not
> > > work very reliably.
> > just use an external one, normally it will update automatically (on
> > windows sumatrapdf is pretty ok, on linux i'd probably use okular
> > because mupdf has no real gui)
>
> I know of two muPDF GUIs:
>
> - llpp https://github.com/moosotc/llpp
> - zathura https://pwmt.org/projects/zathura/
>
> Both are fairly minimalistic, but if you only want to display pages
> they do the job. Zathura also supports synctex.
>
> >
> > Hans
> >
> > -
> >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
> > ___
> > 
>
>
>
> ___
> 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] Unusual error with \doifinstring in \startbtxrenderingdefinitions ... \stopbtxrenderingdefinitions

2021-10-09 Thread Joey McCollum via ntg-context
The test using \removepunctuation that you provided does what it should be
doing (it produces 6 instances of "test-test" with the intervening
punctuation mark in each case removed), but it doesn't do what I'm trying
to do in the MWE above. I'm trying to take certain punctuation marks that
follow the \autopuncttest macro and place them before it instead. Looking
at the typo-chr .lua and .mkiv files, I see that there are \pushpunctuation
and \poppunctuation methods in addition to the \removepunctuation method.
These might be useful for this purpose, but in any case, I still have to
check if the trailing character is one of the characters in a specified
set/string, and this is where the error is arising.

Joey

On Sat, Oct 9, 2021 at 12:50 PM Hans Hagen  wrote:

> On 10/9/2021 5:40 PM, Joey McCollum via ntg-context wrote:
> > Hi,
> >
> > I'm trying to define concise biblatex-style citation macros for a custom
> > bibliographic style specification with support for intelligent placement
> > of trailing punctuation, and I've encountered an unusual error. If I try
> > to define the macros within the btxrenderingdefinitions environment,
> > then the code for handling trailing punctuation with the
> > \doifinstring and \doifnotinstring macros fails in some cases.
> > Specifically, it correctly detects when the trailing punctuation is a
> > period, comma, or semicolon, but not when it is a colon, exclamation
> > point, or question mark. The following MWE reproduces the error:
> >
> > ```
> \starttext
>
> test,\removepunctuation -test
> test;\removepunctuation -test
> test:\removepunctuation -test
> test?\removepunctuation -test
> test!\removepunctuation -test
> test.\removepunctuation -test
>
> \stoptext
>
>
>
> -
>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] Converting LaTeX math to ConTeXt

2021-10-09 Thread Jason Ross via ntg-context

Hello,

I'm trying to provide more support for LaTeX math for an Org Mode
exporter for ConTeXt. LaTeX is the de facto standard for mathematics in
Org Mode. However, the syntax is quite different between LaTeX and
ConTeXt. I have a few ideas, but none that I'm happy about.

1. Export LaTeX to MathML then import that into ConTeXt. I don't know
   how to get this to work. latexmlmath only returns the first row of
   `align` environments (for me anyway). Also, this would require users
   to install another program.
2. Typeset equations with LaTeX as standalone pages and then include
   them as images. This will typeset everything with LaTeX defaults.
   Also, either equation alignment or equation numbering will break.
3. Hack every math environment I can think of to accept LaTeX syntax
   (see https://wiki.contextgarden.net/LaTeX_Math_in_ConTeXt). Lots
   of work, lots of problems as described in the article. End-users
   could add their own hacks to the template preamble for cases I
   don't get to.
4. Manually parse and convert every LaTeX math environment to ConTeXt
   before exporting. Basically a non-starter.

I'm wondering what's the best way to go about this. Surely others have
run into the same problem?

Thanks,

Jason
___
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] Undefined control sequence \??markingfilter, with MWE to recreate

2021-10-09 Thread Rik Kabel via ntg-context

Note, this is not a problem in MkIV, just LMTX

On 10/9/2021 15:53, Rik Kabel via ntg-context wrote:


Error with 20211008 ConTeXt:

ConTeXt  ver: 2021.10.08 20:18 LMTX fmt: 2021.10.9  int:
english/english

...

tex error   > tex error on line 1 in file ./mmm.tex: Undefined
control sequence \??markingfilter




    \csname \??markingfilter
    \v!default \endcsname {chapter}
 \sectionheadmarkingtitle
    #1#2->\clf_markingtitle {#1}{#2
    }
 \strc_markings_get_yes
    ...rking \begincsname \??markingclass #1\endcsname
{#2}{#3}}\fi \orelse \ifparameter #2\or \markingcommand
{#1}{\csname \??markingfilter #2\endcsname {#1}}\else
\markingcommand {#1}{\csname \??markingfilter \v!default
\endcsname {#1}}
    \fi \endgroup ...


    \fi
 \page_layouts_process_element_indeed
    ...andcolor #1#2\begincsname \??layouttextstrut
\layoutelementparameter \c!strut \endcsname \ignorecrlf \edef
\p_width {\layoutelementparameter #3}\ifempty \p_width \else
\expandafter \page_layouts_process_element_limited \fi \p_text
    \endgroup
 \currentlayoutelement
    ...kern -\makeupwidth \fi \letfromlayoutelementparameter
\p_text \c!righttext \ifempty \p_text \kern \makeupwidth \else
\hbox to \makeupwidth \bgroup \hss
\page_layouts_process_element_indeed \c!rightstyle \c!rightcolor
\c!rightwidth
    \egroup \fi
 ...


    \stoptext

 1 >>
 2 %\setupheadertexts [][][{\it\getmarking[chapter]}][] % fails
 3 \setupheadertexts [][][{\getmarking[chapter]}][] % fails
 4 %\setupheadertexts [][][\getmarking[chapter]][] % succeeds

MWE to create. Note that the \it is not necessary to trigger the
error, just the braces.

%\setupheadertexts [][][{\it\getmarking[chapter]}][]  % fails
\setupheadertexts [][][{\getmarking[chapter]}][] % fails
%\setupheadertexts [][][\getmarking[chapter]][]   % succeeds

\starttext

\chapter{abc}
abc
\chapter{def}
def
\stoptext

--
Rik


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


[NTG-context] Undefined control sequence \??markingfilter, with MWE to recreate

2021-10-09 Thread Rik Kabel via ntg-context

Error with 20211008 ConTeXt:

   ConTeXt  ver: 2021.10.08 20:18 LMTX fmt: 2021.10.9  int: english/english

   ...

   tex error   > tex error on line 1 in file ./mmm.tex: Undefined
   control sequence \??markingfilter



   
    \csname \??markingfilter
    \v!default \endcsname {chapter}
\sectionheadmarkingtitle
    #1#2->\clf_markingtitle {#1}{#2
    }
\strc_markings_get_yes
    ...rking \begincsname \??markingclass #1\endcsname {#2}{#3}}\fi
   \orelse \ifparameter #2\or \markingcommand {#1}{\csname
   \??markingfilter #2\endcsname {#1}}\else \markingcommand
   {#1}{\csname \??markingfilter \v!default \endcsname {#1}}
    \fi \endgroup ...
   

    \fi
\page_layouts_process_element_indeed
    ...andcolor #1#2\begincsname \??layouttextstrut
   \layoutelementparameter \c!strut \endcsname \ignorecrlf \edef
   \p_width {\layoutelementparameter #3}\ifempty \p_width \else
   \expandafter \page_layouts_process_element_limited \fi \p_text
    \endgroup
\currentlayoutelement
    ...kern -\makeupwidth \fi \letfromlayoutelementparameter
   \p_text \c!righttext \ifempty \p_text \kern \makeupwidth \else \hbox
   to \makeupwidth \bgroup \hss \page_layouts_process_element_indeed
   \c!rightstyle \c!rightcolor \c!rightwidth
    \egroup \fi
 ...

   
    \stoptext

 1 >>
 2 %\setupheadertexts [][][{\it\getmarking[chapter]}][]  % fails
 3 \setupheadertexts [][][{\getmarking[chapter]}][] % fails
 4 %\setupheadertexts [][][\getmarking[chapter]][]   % succeeds

   MWE to create. Note that the \it is not necessary to trigger the
   error, just the braces.

   %\setupheadertexts [][][{\it\getmarking[chapter]}][]  % fails
   \setupheadertexts [][][{\getmarking[chapter]}][] % fails
   %\setupheadertexts [][][\getmarking[chapter]][]   % succeeds

   \starttext

   \chapter{abc}
   abc
   \chapter{def}
   def
   \stoptext

--
Rik
___
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] Does the ConTeXt distro come with a PDFViewer?

2021-10-09 Thread Henri Menke via ntg-context
On Sat, 2021-10-09 at 18:47 +0200, Hans Hagen via ntg-context wrote:
> On 10/9/2021 3:07 PM, Ramkumar KB via ntg-context wrote:
> > Hello Community,
> > 
> > If my memory serves me correctly, I might have noticed (in one of the
> > presentations during the recent ConTeXt meeting) that the distro
> > comes 
> > with a PDFViewer. Is that a correct assumption?
> > 
> > I am currently using a VSCode extension for PDFViewing but it does
> > not 
> > work very reliably.
> just use an external one, normally it will update automatically (on 
> windows sumatrapdf is pretty ok, on linux i'd probably use okular 
> because mupdf has no real gui)

I know of two muPDF GUIs:

- llpp https://github.com/moosotc/llpp
- zathura https://pwmt.org/projects/zathura/

Both are fairly minimalistic, but if you only want to display pages
they do the job. Zathura also supports synctex.

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


___
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] Unusual error with \doifinstring in \startbtxrenderingdefinitions ... \stopbtxrenderingdefinitions

2021-10-09 Thread Hans Hagen via ntg-context

On 10/9/2021 5:40 PM, Joey McCollum via ntg-context wrote:

Hi,

I'm trying to define concise biblatex-style citation macros for a custom 
bibliographic style specification with support for intelligent placement 
of trailing punctuation, and I've encountered an unusual error. If I try 
to define the macros within the btxrenderingdefinitions environment, 
then the code for handling trailing punctuation with the 
\doifinstring and \doifnotinstring macros fails in some cases. 
Specifically, it correctly detects when the trailing punctuation is a 
period, comma, or semicolon, but not when it is a colon, exclamation 
point, or question mark. The following MWE reproduces the error:


```

\starttext

test,\removepunctuation -test
test;\removepunctuation -test
test:\removepunctuation -test
test?\removepunctuation -test
test!\removepunctuation -test
test.\removepunctuation -test

\stoptext



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


Re: [NTG-context] Does the ConTeXt distro come with a PDFViewer?

2021-10-09 Thread Hans Hagen via ntg-context

On 10/9/2021 3:07 PM, Ramkumar KB via ntg-context wrote:

Hello Community,

If my memory serves me correctly, I might have noticed (in one of the 
presentations during the recent ConTeXt meeting) that the distro comes 
with a PDFViewer. Is that a correct assumption?


I am currently using a VSCode extension for PDFViewing but it does not 
work very reliably.
just use an external one, normally it will update automatically (on 
windows sumatrapdf is pretty ok, on linux i'd probably use okular 
because mupdf has no real gui)


Hans

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


Re: [NTG-context] Does the ConTeXt distro come with a PDFViewer?

2021-10-09 Thread Henning Hraban Ramm via ntg-context


> Am 09.10.2021 um 15:07 schrieb Ramkumar KB via ntg-context 
> :
> 
> If my memory serves me correctly, I might have noticed (in one of the 
> presentations during the recent ConTeXt meeting) that the distro comes with a 
> PDFViewer. Is that a correct assumption?

No.

There’s no editor or viewer included.

We just discussed features and problems of existing viewers and decided to try 
to support developers in enhancing open source viewers.

Hraban
___
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] Unusual error with \doifinstring in \startbtxrenderingdefinitions ... \stopbtxrenderingdefinitions

2021-10-09 Thread Joey McCollum via ntg-context
Hi,

I'm trying to define concise biblatex-style citation macros for a custom
bibliographic style specification with support for intelligent placement of
trailing punctuation, and I've encountered an unusual error. If I try to
define the macros within the btxrenderingdefinitions environment, then the
code for handling trailing punctuation with the \doifinstring and
\doifnotinstring macros fails in some cases. Specifically, it correctly
detects when the trailing punctuation is a period, comma, or semicolon, but
not when it is a colon, exclamation point, or question mark. The following
MWE reproduces the error:

```

\startbtxrenderingdefinitions[myspec]

\def\autopuncttest#1#2{%

\removeunwantedspaces%

\doifinstring{#2}{,.!?;:}{#2}%

\footnote{#1}%

\doifnotinstring{#2}{,.!?;:}{#2}%

}

\stopbtxrenderingdefinitions


\usebtxdefinitions[myspec]


\starttext

This works \autopuncttest{Footnote 1}, as does this \autopuncttest{Footnote
2}; and so does this \autopuncttest{Footnote 3}.\blank

But this one fails if defined in the bib spec \autopuncttest{Footnote
4}!\blank

And why does this one fail in the bib spec too \autopuncttest{Footnote
5}?\blank

\stoptext
```

Everything works as expected if the macro definition is outside of the
btxrenderingdefinitions
environment. But within the environment, do certain punctuation marks need
to be escaped in the second argument of \doifinstring? Or is this a bug?

Joey
___
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] Does the ConTeXt distro come with a PDFViewer?

2021-10-09 Thread Ramkumar KB via ntg-context
Hello Community,

If my memory serves me correctly, I might have noticed (in one of the
presentations during the recent ConTeXt meeting) that the distro comes with
a PDFViewer. Is that a correct assumption?

I am currently using a VSCode extension for PDFViewing but it does not work
very reliably.

Thank you very much,

best regards,
Ramkumar
___
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] Adaptation of ConTeXt to Esperanto

2021-10-09 Thread Alain Delmotte via ntg-context

  
  


Le 9/10/2021 à 12:49, Wolfgang Schuster
  a écrit :

Alain
  Delmotte schrieb am 09.10.2021 um 11:23:
  
  Hi!


Le 9/10/2021 à 10:58, Wolfgang Schuster a écrit :

Alain Delmotte via ntg-context schrieb
  am 08.10.2021 um 22:07:
  
  Hi,


Some time ago I did prepare the files to support Esperanto
in Context (hyphenation and translation of terms).


I thought it was working, testing with the command \date,
which gives the correct format.


But today I remarked that the legends for Figure and Table
(and perhaps other) are in English.


The file lang-txt.lua is there and contains the translations
for Esperanto.

  
  
  The language definitions for esperanto in lang-def.mkxl are in
  the wrong order, the first definition has to be "eo".
  
  
  
  \installlanguage
  
  - [\s!esperanto]
  
  + [\s!eo]
  
    [\c!spacing=\v!packed,
  
     \c!leftsentence=\endash,
  
     \c!rightsentence=\endash,
  
     \c!leftsubsentence=\endash,
  
     \c!rightsubsentence=\endash,
  
     \c!leftquote=\upperleftsinglesixquote, %U+2018,
  
     \c!rightquote=\upperrightsingleninequote,  %U+2019,
  
     \c!leftquotation=\upperleftdoublesixquote, %U+201C,
  
     \c!rightquotation=\upperrightdoubleninequote,  %U+201D,
  
     \c!date={\v!day,-a\space de\space,\v!month,\space \v!year},
  
     \s!patterns=eo,
  
     \s!lefthyphenmin=2,
  
     \s!righthyphenmin=2]
  
  
  -\installlanguage[\s!eo][\c!default=\s!esperanto]
  
  +\installlanguage[\s!esperanto][\c!default=\s!eo]
  
  
  
  Wolfgang
  


Thanks Wolfgang, I did find the file and the wrong order.


Now, what should I do? I modified it outside context-lmtx in a
copy.


Replace the original and???

  
  
  You have to make the changes in the original file and afterwards
  generate the format file with
  
  
      context --make
  
  
  If everything works as expected report back and Hans can apply the
  fix on his machine to ensure they are included in the next release
  because when you make a update your changes are overwritten.
  
  
  Wolfgang
  

Thanks Wolfgang, it works perfectly.
You can report to Hans and thank him
for the nice work.
Alain

  


___
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] Adaptation of ConTeXt to Esperanto

2021-10-09 Thread Wolfgang Schuster via ntg-context

Alain Delmotte schrieb am 09.10.2021 um 11:23:

Hi!

Le 9/10/2021 à 10:58, Wolfgang Schuster a écrit :

Alain Delmotte via ntg-context schrieb am 08.10.2021 um 22:07:

Hi,

Some time ago I did prepare the files to support Esperanto in 
Context (hyphenation and translation of terms).


I thought it was working, testing with the command \date, which 
gives the correct format.


But today I remarked that the legends for Figure and Table (and 
perhaps other) are in English.


The file lang-txt.lua is there and contains the translations for 
Esperanto.


The language definitions for esperanto in lang-def.mkxl are in the 
wrong order, the first definition has to be "eo".



\installlanguage
- [\s!esperanto]
+ [\s!eo]
  [\c!spacing=\v!packed,
   \c!leftsentence=\endash,
   \c!rightsentence=\endash,
   \c!leftsubsentence=\endash,
   \c!rightsubsentence=\endash,
   \c!leftquote=\upperleftsinglesixquote, %U+2018,
   \c!rightquote=\upperrightsingleninequote,  %U+2019,
   \c!leftquotation=\upperleftdoublesixquote, %U+201C,
   \c!rightquotation=\upperrightdoubleninequote,  %U+201D,
   \c!date={\v!day,-a\space de\space,\v!month,\space \v!year},
   \s!patterns=eo,
   \s!lefthyphenmin=2,
   \s!righthyphenmin=2]

-\installlanguage[\s!eo][\c!default=\s!esperanto]
+\installlanguage[\s!esperanto][\c!default=\s!eo]


Wolfgang


Thanks Wolfgang, I did find the file and the wrong order.

Now, what should I do? I modified it outside context-lmtx in a copy.

Replace the original and???


You have to make the changes in the original file and afterwards 
generate the format file with


    context --make

If everything works as expected report back and Hans can apply the fix 
on his machine to ensure they are included in the next release because 
when you make a update your changes are overwritten.


Wolfgang

___
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] Adaptation of ConTeXt to Esperanto

2021-10-09 Thread Wolfgang Schuster via ntg-context

Alain Delmotte via ntg-context schrieb am 08.10.2021 um 22:07:

Hi,

Some time ago I did prepare the files to support Esperanto in Context 
(hyphenation and translation of terms).


I thought it was working, testing with the command \date, which gives 
the correct format.


But today I remarked that the legends for Figure and Table (and perhaps 
other) are in English.


The file lang-txt.lua is there and contains the translations for Esperanto.


The language definitions for esperanto in lang-def.mkxl are in the wrong 
order, the first definition has to be "eo".



\installlanguage
- [\s!esperanto]
+ [\s!eo]
  [\c!spacing=\v!packed,
   \c!leftsentence=\endash,
   \c!rightsentence=\endash,
   \c!leftsubsentence=\endash,
   \c!rightsubsentence=\endash,
   \c!leftquote=\upperleftsinglesixquote, %U+2018,
   \c!rightquote=\upperrightsingleninequote,  %U+2019,
   \c!leftquotation=\upperleftdoublesixquote, %U+201C,
   \c!rightquotation=\upperrightdoubleninequote,  %U+201D,
   \c!date={\v!day,-a\space de\space,\v!month,\space \v!year},
   \s!patterns=eo,
   \s!lefthyphenmin=2,
   \s!righthyphenmin=2]

-\installlanguage[\s!eo][\c!default=\s!esperanto]
+\installlanguage[\s!esperanto][\c!default=\s!eo]


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