[NTG-context] How to implement word corrections

2023-12-27 Thread Jairo A. del Rio
Hi, list! I'm writing a small module to print word corrections, e.g., things like "irregardless" > "regardless"or "alverja" > "arveja" ('pea' in Spanish) with overstrikes and underlines, but I want feedback to make a module in the ConTeXt fashion.

[NTG-context] Re: checkbox in fields show the word yes

2023-10-05 Thread juh via ntg-context
Hi, three years later I would like to hint to this thread again and ask if there is hope that checkboxes will work better in Acrobat any time soon. Am Fri, Dec 11, 2020 at 06:28:36PM +0100 schrieb Hans Hagen: > On 12/11/2020 6:13 PM, Andres Conrado Montoya wrote: > > Firefox doesn't show the

Re: [NTG-context] Contractions in ligature suppression word list

2022-06-07 Thread Denis Maier via ntg-context
A somewhat more complete testfile with a couple of options is below. My context installation is not current so please double check, but I think it boils down to this: apostrophes seem not to be considered to be part of a word. Once I enable wolfin under \startlanguageoptions[en

Re: [NTG-context] Contractions in ligature suppression word list

2022-06-06 Thread Thangalin via ntg-context
Here's a short example (version 2022.05.11 11:36): \setuplanguage[en][goodies={lang-en.llg}] \starttext % Expected: no ligature; actual: as expected wolfish % Expected: no ligatures; actual: ligature wolfing wolfin' wolfin’ \stoptext

Re: [NTG-context] Contractions in ligature suppression word list

2022-06-06 Thread Denis Maier via ntg-context
-context] Contractions in ligature suppression word list Thanks for the response, Bruce. 1) The file you attached doesn't include the word "wolfing", nor "wolfin". I assume they need to be The suffixes section accounts for this. Wolfing and wolfish both suppress the li

Re: [NTG-context] Contractions in ligature suppression word list

2022-06-06 Thread Thangalin via ntg-context
Thanks for the response, Bruce. 1) The file you attached doesn't include the word "wolfing", nor "wolfin". > I assume they need to be The suffixes section accounts for this. Wolfing and wolfish both suppress the ligature correctly. I removed the comma separators, go

Re: [NTG-context] Contractions in ligature suppression word list

2022-06-06 Thread Bruce Horrocks via ntg-context
n’, > ing > ]], > > See https://wiki.contextgarden.net/Ligatures#Word_suppression for an example > usage. > > Thank you! > I'm probably missing something here but... 1) The file you attached doesn't include the word "wolfing", nor "wolfin". I a

[NTG-context] Contractions in ligature suppression word list

2022-06-05 Thread Thangalin via ntg-context
Attached are tweaked endings for words like "wolf" to include contracted endings, but they are being ignored. This makes for a minor inconsistency: wolfing -- no ligature wolfish -- no ligature wolfin -- no ligature (incorrect spelling, though) wolfin' -- ligature Any ideas? I tried

Re: [NTG-context] Word wrap of 'part' titles

2022-04-18 Thread Bruce Horrocks via ntg-context
> On 18 Apr 2022, at 22:10, Wolfgang Schuster via ntg-context > wrote: > > Bruce Horrocks via ntg-context schrieb am 18.04.2022 um 22:46: >> In the MWE below the 'part' title is centred but on one line only and, >> because it is a long title, the beginning and end are lost off the sides of

Re: [NTG-context] Word wrap of 'part' titles

2022-04-18 Thread Aditya Mahajan via ntg-context
On Mon, 18 Apr 2022, Wolfgang Schuster via ntg-context wrote: > Bruce Horrocks via ntg-context schrieb am 18.04.2022 um 22:46: > > In the MWE below the 'part' title is centred but on one line only and, > because it is a long title, the beginning and end are lost off the sides of > the page. > > >

Re: [NTG-context] Word wrap of 'part' titles

2022-04-18 Thread Wolfgang Schuster via ntg-context
Bruce Horrocks via ntg-context schrieb am 18.04.2022 um 22:46: In the MWE below the 'part' title is centred but on one line only and, because it is a long title, the beginning and end are lost off the sides of the page. If it were a 'chapter' title then I could insert '\\' to cause a line

[NTG-context] Word wrap of 'part' titles

2022-04-18 Thread Bruce Horrocks via ntg-context
In the MWE below the 'part' title is centred but on one line only and, because it is a long title, the beginning and end are lost off the sides of the page. If it were a 'chapter' title then I could insert '\\' to cause a line break at that point. However this does not seem to work for 'part'.

Re: [NTG-context] \WORD regression

2021-12-10 Thread Henning Hraban Ramm via ntg-context
Am 10.12.21 um 12:53 schrieb Wolfgang Schuster: Henning Hraban Ramm via ntg-context schrieb am 10.12.2021 um 08:20: Am 09.12.21 um 19:00 schrieb Henning Hraban Ramm via ntg-context: \starttext \WORD{größer} \stoptext \WORD used to handle "ß" correctly, i.e. convert it to "SS&

Re: [NTG-context] \WORD regression

2021-12-10 Thread Wolfgang Schuster via ntg-context
Henning Hraban Ramm via ntg-context schrieb am 10.12.2021 um 08:20: Am 09.12.21 um 19:00 schrieb Henning Hraban Ramm via ntg-context: \starttext \WORD{größer} \stoptext \WORD used to handle "ß" correctly, i.e. convert it to "SS"; now it makes "sS".

Re: [NTG-context] \WORD regression

2021-12-09 Thread Hans Hagen via ntg-context
On 12/10/2021 8:20 AM, Henning Hraban Ramm via ntg-context wrote: Am 09.12.21 um 19:00 schrieb Henning Hraban Ramm via ntg-context: \starttext \WORD{größer} \stoptext \WORD used to handle "ß" correctly, i.e. convert it to "SS"; now it makes "sS". (If the curr

Re: [NTG-context] \WORD regression

2021-12-09 Thread Henning Hraban Ramm via ntg-context
Am 09.12.21 um 19:00 schrieb Henning Hraban Ramm via ntg-context: \starttext \WORD{größer} \stoptext \WORD used to handle "ß" correctly, i.e. convert it to "SS"; now it makes "sS". (If the current font contains an uppercase ß that would be even better, but t

[NTG-context] \WORD regression

2021-12-09 Thread Henning Hraban Ramm via ntg-context
\starttext \WORD{größer} \stoptext \WORD used to handle "ß" correctly, i.e. convert it to "SS"; now it makes "sS". (If the current font contains an uppercase ß that would be even better, but those are rare). I can’t tell when it changed (some LMTX versi

Re: [NTG-context] weird word breaking in Win64

2021-05-08 Thread Hans Hagen
On 5/8/2021 1:33 PM, Pablo Rodriguez wrote: This seems to be added by fonts.injections.method=advance. Hm, i need to use an different trick then for a border case (currently a zwj injected). Will do. Hans -

Re: [NTG-context] weird word breaking in Win64

2021-05-08 Thread Pablo Rodriguez
On 5/8/21 3:58 PM, denis.ma...@ub.unibe.ch wrote: > Looks like I can confirm this... see below. But it seems to depend on your > PDF viewer. Results in Sumatra and Acrobat differ. Many thanks for your confirmation, Denis. With SumatraPDF 3.1.2, I get lines without spaces between words, too.

Re: [NTG-context] weird word breaking in Win64

2021-05-08 Thread denis.maier
i 2021 13:33 > An: mailing list for ConTeXt users > Betreff: [NTG-context] weird word breaking in Win64 > > Dear list, > > the following sample breaks some words not right in Win64 (I cannot > reproduce it in Linux): > > \enabledirectives[fonts.injections

[NTG-context] weird word breaking in Win64

2021-05-08 Thread Pablo Rodriguez
, called up on the screen, will make everything automatic from now on. Lines 3-5 contain word breaks that make searching impossible. This seems to be added by fonts.injections.method=advance. Could anyone on Windows confirm this issue? Many thanks for your help, Pablo -- http://www.ousia.tk

Re: [NTG-context] No space between \cite and next word.

2021-04-18 Thread Mikael Sundqvist
Mikael Sundqvist wrote: > > Hi, > > > > I think there has been some change recently. Is it on purpose that > > there is no space after the \cite. Look how the parenthesis that ends > > the citation and the word "text" are set without space inbetween. > >

Re: [NTG-context] No space between \cite and next word.

2021-04-18 Thread Hans Hagen
On 4/16/2021 12:00 PM, Mikael Sundqvist wrote: Hi, I think there has been some change recently. Is it on purpose that there is no space after the \cite. Look how the parenthesis that ends the citation and the word "text" are set without space inbetween. /Mikael \startbuffer[mybib

[NTG-context] No space between \cite and next word.

2021-04-16 Thread Mikael Sundqvist
Hi, I think there has been some change recently. Is it on purpose that there is no space after the \cite. Look how the parenthesis that ends the citation and the word "text" are set without space inbetween. /Mikael \startbuffer[mybib] @article{a, author = {An Author}, title

Re: [NTG-context] Ligature suppression word list

2021-04-12 Thread denis.maier
Hi, a small update on this one : I’ve built a small python script that uses the patterns from the selnolig package to extract words with suspicious ligatures from the word list provided by the Uni Leipzig corpus project. Running the script over a corpus of over 1 million words produces

Re: [NTG-context] Ligature suppression word list

2021-04-08 Thread Hans Hagen
On 4/8/2021 9:37 PM, Arthur Rosendahl wrote: Dutch, by contrast, does not seem so well served: the OpenTaal group is dormant and no longer offers the hyphenated word list that was once available (that was already the case five years ago). The most relevant page I find: https

Re: [NTG-context] Ligature suppression word list

2021-04-08 Thread Arthur Rosendahl
to use this mechanism for individual languages, you need to invest a *lot* of time for each one of them. German is one of the very few languages I know of that has an active group of people working to produce that data, the “Trennmuster people”, as Mojca calls them ;-) Their word list supports many fine

Re: [NTG-context] Ligature suppression word list

2021-04-08 Thread denis.maier
Von: ntg-context Im Auftrag von rh...@t-online.de Gesendet: Mittwoch, 7. April 2021 20:20 An: ntg-context@ntg.nl Betreff: Re: [NTG-context] Ligature suppression word list A lot of corpora can be found here: https://wortschatz.uni-leipzig.de/de especially here: https://wortschatz.uni-leipzig.de

Re: [NTG-context] Ligature suppression word list

2021-04-07 Thread rha17
> Message: 2 > Date: Tue, 6 Apr 2021 15:03:54 + > From: mailto:denis.ma...@ub.unibe.ch>> > To: mailto:j.ha...@xs4all.nl>>, <mailto:ntg-context@ntg.nl>> > Subject: Re: [NTG-context] Ligature suppression word list > Message-ID: <41e6530172b54

Re: [NTG-context] Ligature suppression word list

2021-04-06 Thread denis.maier
> -Ursprüngliche Nachricht- > Von: Hans Hagen > Gesendet: Samstag, 3. April 2021 17:58 > An: mailing list for ConTeXt users ; Maier, Denis > Christian (UB) > Betreff: Re: [NTG-context] Ligature suppression word list > > On 4/3/2021 5:06 PM, denis.ma...@ub.unibe.c

Re: [NTG-context] Ligature suppression word list

2021-04-06 Thread denis.maier
> -Ursprüngliche Nachricht- > Von: Hans Hagen > Gesendet: Samstag, 3. April 2021 17:58 > An: mailing list for ConTeXt users ; Maier, Denis > Christian (UB) > Betreff: Re: [NTG-context] Ligature suppression word list > > On 4/3/2021 5:06 PM, denis.ma...@u

Re: [NTG-context] Ligature suppression word list

2021-04-03 Thread Thangalin
Untested. Lists are not subject to copyright, so public domain should be legal, even though SE posts are CC-BY-SA. When a word has a single suffix or prefix (e.g., safflower/s), the two words are listed together, rather than using an explicit suffix/prefix section. return { name

Re: [NTG-context] Ligature suppression word list

2021-04-03 Thread Hans Hagen
On 4/3/2021 6:30 PM, Thangalin wrote: A starting list of English non-ligatures: https://english.stackexchange.com/a/50957/22099 The entire SE thread has additional resources and is quite informative. So can you make a file from that like we

Re: [NTG-context] Ligature suppression word list

2021-04-03 Thread Hans Hagen
btw, user will also be able to do this in a document source \startlanguageoptions[de] Zapf|innovation whatever+innovation \stoplanguageoptions ligature prevention in the first and compound word in the next one. so, one way to see what we need is if users try to analyze their 'exception

Re: [NTG-context] Ligature suppression word list

2021-04-03 Thread Thangalin
A starting list of English non-ligatures: https://english.stackexchange.com/a/50957/22099 The entire SE thread has additional resources and is quite informative. ___ If your question is of interest to others as well,

Re: [NTG-context] Ligature suppression word list

2021-04-03 Thread Hans Hagen
On 4/3/2021 5:06 PM, denis.ma...@ub.unibe.ch wrote: 1. The new language options features include a tracker that allows for tracking for which words in a given document ligature prevention happened, and which words haven’t been touched by the mechanism. It should be possible to

Re: [NTG-context] Ligature suppression word list

2021-04-03 Thread Hans Hagen
On 4/3/2021 5:20 PM, Arthur Rosendahl wrote: On Sat, Apr 03, 2021 at 03:06:22PM +, denis.ma...@ub.unibe.ch wrote: What do you think? I think you should collaborate with the group of volunteers working on German hyphenation and related topics. They have a mailing list (in German):

Re: [NTG-context] Ligature suppression word list

2021-04-03 Thread Hans Hagen
be suppressed. The list is derived from the word list that comes with the lualatex selnolig package: https://github.com/micoloretan/selnolig/blob/master/selnolig-german-wordlist.tex <https://github.com/micoloretan/selnolig/blob/master/selnolig-german-wordlist.tex> You can find the curren

Re: [NTG-context] Ligature suppression word list

2021-04-03 Thread Arthur Rosendahl
On Sat, Apr 03, 2021 at 03:06:22PM +, denis.ma...@ub.unibe.ch wrote: > What do you think? I think you should collaborate with the group of volunteers working on German hyphenation and related topics. They have a mailing list (in German): https://lists.dante.de/mailman/listinfo/trennmuster

[NTG-context] Ligature suppression word list

2021-04-03 Thread denis.maier
Hi everyone Now that Hans has implemented the new ligature suppression mechanism via language goodies - thanks again Hans! - we now need to come up with wordlists. I've started working on a list of German words with ligatures that should be suppressed. The list is derived from the word list

Re: [NTG-context] checkbox in fields show the word yes

2020-12-11 Thread Bruce Horrocks
> On 11 Dec 2020, at 08:21, Floris van Manen wrote: > > > > On 11/12/2020 08:46, Jan U. Hasecke wrote: >> as nobody answered I would like too repeat my question. > > This is what I see On a Mac running BigSur... 1) using the TeXShop built-in PDF viewer I see th

Re: [NTG-context] checkbox in fields show the word yes

2020-12-11 Thread Hans Hagen
On 12/11/2020 6:13 PM, Andres Conrado Montoya wrote: Firefox doesn't show the "yes", nor Acrobat X, but SumatraPDF does. I modified your definition as: \definefield[test][check][cbox][][] And now the "yes" doesn't appear. However, I don't know how this affects the functionality of the form.

Re: [NTG-context] checkbox in fields show the word yes

2020-12-11 Thread Andres Conrado Montoya
Firefox doesn't show the "yes", nor Acrobat X, but SumatraPDF does. I modified your definition as: \definefield[test][check][cbox][][] And now the "yes" doesn't appear. However, I don't know how this affects the functionality of the form. -- Andrés Conrado Montoya Andi Kú

Re: [NTG-context] checkbox in fields show the word yes

2020-12-11 Thread Jan U. Hasecke
Dear all, as nobody answered I would like too repeat my question. If you open the MWE in Firefox, you see the word "yes" written in the checkbox. Is there a way to avoid this? Thanks a lot for your help. juh Am 17.11.20 um 13:50 schrieb Jan U. Hasecke: > Hi all, > > with

Re: [NTG-context] checkbox in fields show the word yes

2020-12-11 Thread Floris van Manen
On 11/12/2020 08:46, Jan U. Hasecke wrote: as nobody answered I would like too repeat my question. This is what I see ___ If your question is of interest to others as well, please add an entry to the Wiki!

Re: [NTG-context] Problem with word not hyphenating

2020-11-30 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 30.11.2020 um 17:16: On 11/30/20 4:48 PM, Bruce Horrocks wrote: The word "re-implementation" refuses to hyphenate and consequently stick outs into the right margin. I've tried using \hyphenation but it makes no difference. [...] Any suggestions, please?

Re: [NTG-context] Problem with word not hyphenating

2020-11-30 Thread Pablo Rodriguez
On 11/30/20 4:48 PM, Bruce Horrocks wrote: > The word "re-implementation" refuses to hyphenate and consequently > stick outs into the right margin. > > I've tried using \hyphenation but it makes no difference. > [...] > Any suggestions, please? Hi Br

[NTG-context] Problem with word not hyphenating

2020-11-30 Thread Bruce Horrocks
The word "re-implementation" refuses to hyphenate and consequently stick outs into the right margin. I've tried using \hyphenation but it makes no difference. \showframe \starttext \hyphenation{re-im-ple-men-ta-tion} Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do

[NTG-context] checkbox in fields show the word yes

2020-11-17 Thread Jan U. Hasecke
,frame=on,offset=0.5mm,frameoffset=1mm,type=radio,color=black] \definefield[test][check][cbox][yes][no] \starttext \field[test] \space Do you see the word »yes«? \stoptext Unfortunately in Firefox and some other PDF Viewer there is the word "yes" written in the checkbox. This make

Re: [NTG-context] inter-word spacing

2020-10-22 Thread Jano Kula
Hello Julian! Thank you for your hints. On Thu, 22 Oct 2020 at 11:48, jbf wrote: > 1. One factor will be whether you are using \definefontfeature > [default][default] [expansion=quality,protrusion=quality], which you > obviously then need to call in with \setupalign. >

Re: [NTG-context] inter-word spacing

2020-10-22 Thread jbf
\setupcharacterkerning. I can match character kerning, but inter-word spaces are different. What is the right option, command or feature to change it for current font and/or in the font definition? I haven't found any. MWE % macros=mkiv \setupcharacterkerning[large][factor=0.1

[NTG-context] inter-word spacing

2020-10-20 Thread Jano Kula
Hello, trying to reproduce the hand-printed original as close as possible I'm using \setupcharacterkerning. I can match character kerning, but inter-word spaces are different. What is the right option, command or feature to change it for current font and/or in the font definition? I haven't found

Re: [NTG-context] removing word in filtered XML

2020-08-21 Thread Pablo Rodriguez
On 8/21/20 2:59 PM, Hans Hagen wrote: > On 8/20/2020 4:20 PM, Pablo Rodriguez wrote: > >>\replaceword[whatever][this or][no] >>\replaceword[whatever][that][] > this feature creep is in the next upload Hans, many thanks for the new feature. Pablo -- http://www.ousia.tk

Re: [NTG-context] removing word in filtered XML

2020-08-21 Thread Hans Hagen
On 8/20/2020 4:20 PM, Pablo Rodriguez wrote: \replaceword[whatever][this or][no] \replaceword[whatever][that][] this feature creep is in the next upload Hans - Hans Hagen | PRAGMA

Re: [NTG-context] removing word in filtered XML

2020-08-20 Thread Pablo Rodriguez
ot;)} >> >> But they could be more (and replacements might be added to that list). >> >> Is there a more elegant way than appending :gsub()? >> >> Is there also a proper way for word scanning? >> >> A "word" can be "Word ", " word "

Re: [NTG-context] removing word in filtered XML

2020-08-20 Thread Hans Hagen
thanks for your reply, Hans. I now see that \xmlraw is the way to go. I have two questions in word replacement and Lua (maybe there is some lpeg magic that could be used). This time, I have to remove two words, such as in: string.gsub([[\xmlraw{#1}{.}]]," del ", " "):gsub(&quo

Re: [NTG-context] removing word in filtered XML

2020-08-20 Thread Pablo Rodriguez
))}) > \stopxmlsetups Many thanks for your reply, Hans. I now see that \xmlraw is the way to go. I have two questions in word replacement and Lua (maybe there is some lpeg magic that could be used). This time, I have to remove two words, such as in: string.gsub([[\xmlraw{#1}{.}]],"

Re: [NTG-context] removing word in filtered XML

2020-08-20 Thread Pablo Rodriguez
On 8/20/20 11:08 AM, Taco Hoekwater wrote: > [...] > There is pretty much always ‘a way’, but I do not know of a ’nice’ way. > Your problem is that lxml.flush() and friends do not return a value, > they just do a direct context(‘’) call behind the scenes with no > return string for you to

Re: [NTG-context] removing word in filtered XML

2020-08-20 Thread Hans Hagen
On 8/19/2020 6:10 PM, Pablo Rodriguez wrote: Dear list, I have the following sample: \startbuffer[demo] This is One of the best a paragraph. This is another paragraph. This is another Two of the best paragraph. This

Re: [NTG-context] removing word in filtered XML

2020-08-20 Thread Taco Hoekwater
> On 19 Aug 2020, at 18:10, Pablo Rodriguez wrote: > > Dear list, > > I have the following sample: > > \startbuffer[demo] > > > >This is > One of the best a paragraph. >This is another paragraph. >This is another > Two of the best

[NTG-context] removing word in filtered XML

2020-08-19 Thread Pablo Rodriguez
Dear list, I have the following sample: \startbuffer[demo] This is One of the best a paragraph. This is another paragraph. This is another Two of the best paragraph. This is another Three paragraph. This is

Re: [NTG-context] Hyphentation/Linebreak after x characters inside \WORD?

2020-04-23 Thread Rik Kabel
On 4/23/2020 15:01, Benjamin Buchmuller wrote: Sorry, I have just realized that the problem might not be \WORD{} actually, so this one hyphenates: \define[2]\mycommand{ \startxrow \startxcell o#1 \stopxcell \startxcell \tt\WORD #2 \stopxcell \stopxrow

Re: [NTG-context] Hyphentation/Linebreak after x characters inside \WORD?

2020-04-23 Thread Benjamin Buchmuller
Sorry, I have just realized that the problem might not be \WORD{} actually, so this one hyphenates: \define[2]\mycommand{ \startxrow \startxcell o#1 \stopxcell \startxcell \tt\WORD #2 \stopxcell \stopxrow } Whereas these ones don’t: \define[2

[NTG-context] Hyphentation/Linebreak after x characters inside \WORD?

2020-04-23 Thread Benjamin Buchmuller
Hi again, I am reading a CSV file into ConTeXt which contains long DNA sequences (>> 40 characters) to place in xtables. So far, this works fine. However, I need to uppercase the entries and need to \tt them. When I do this inside \WORD however, they don’t hyphenate any more. I’m

Re: [NTG-context] Capitalize first word of first line within \startlines

2020-03-05 Thread Hans Hagen
a list of predefined styles and describes how to set up an alternative style: https://wiki.contextgarden.net/Style_Alternatives#Defining_a_Style_Alternative From the wiki page: \definealternativestyle [head:neat] [\WORD] [] While \definealternativestyle[PoemFirstWord][{\bf\uppercasing

Re: [NTG-context] Capitalize first word of first line within \startlines

2020-03-04 Thread Thangalin
how to set up an alternative style: https://wiki.contextgarden.net/Style_Alternatives#Defining_a_Style_Alternative From the wiki page: \definealternativestyle [head:neat] [\WORD] [] While \definealternativestyle[PoemFirstWord][{\bf\uppercasing}][] will work for my needs, I am concerned

Re: [NTG-context] Capitalize first word of first line within \startlines

2020-03-04 Thread Hans Hagen
On 3/4/2020 5:09 PM, Thangalin wrote: Looking to uppercase the first word of a poem: \setupindenting[yes, 0.75em] \setupinitial[ state=start, n=2, distance=\zeropoint, ] % This does not appear to work? \definealternativestyle[PoemFirstWord][\WORD][] \definefirstline[PoemFirstLine

[NTG-context] Capitalize first word of first line within \startlines

2020-03-04 Thread Thangalin
Looking to uppercase the first word of a poem: \setupindenting[yes, 0.75em] \setupinitial[ state=start, n=2, distance=\zeropoint, ] % This does not appear to work? \definealternativestyle[PoemFirstWord][\WORD][] \definefirstline[PoemFirstLine][ alternative=word, style=PoemFirstWord

[NTG-context] registers: subentry indentation different from word--number gap?

2019-07-12 Thread Sanjoy Mahajan
I don't think the current behavior is a bug, so the following is a feature request: With the following fairly minimal example \setupregister[index][indicator=no, distance=0.5em] \starttext ABC\index{x}DEF\index{x+yyz} \blank \placeindex \stoptext the distance parameter sets (1)

Re: [NTG-context] Word and character count excluding TeX-directives

2018-01-16 Thread Rik Kabel
On 2018-01-16 09:26, Dr. Thomas Möbius wrote: \definestartstop     [abstract]     [style=bold,     after={\blank[big]}] \starttext \title{My title: example of a word and character count} {\strut\tfx Formal guidelines: word count of abstract: $x$, character count of main text: $x$, character

[NTG-context] Word and character count excluding TeX-directives

2018-01-16 Thread Dr . Thomas Möbius
To meet some formal guidelines, I need to provide a word count of my abstract and a character count of the main text, and a character count of all the text appearing in figure captions. Is this possible (maybe using some lua-magic)? Thank you! Thomas Minimal example: \definestartstop

Re: [NTG-context] ligatures/substituation at word boundaries

2017-07-30 Thread Hans Hagen
On 7/30/2017 11:39 AM, Ulrike Fischer wrote: Am Fri, 28 Jul 2017 23:21:18 +0200 schrieb Hans Hagen: Is it possible to refer in fonts.handlers.otf.addfeature to the word boundary? The luatex manual speaks of a virtual "left_boundary" char, but I couldn't find a way to use it. It i

Re: [NTG-context] ligatures/substituation at word boundaries

2017-07-30 Thread Ulrike Fischer
Am Fri, 28 Jul 2017 23:21:18 +0200 schrieb Hans Hagen: >> Is it possible to refer in fonts.handlers.otf.addfeature to the word >> boundary? The luatex manual speaks of a virtual "left_boundary" >> char, but I couldn't find a way to use it. > It is possible to che

Re: [NTG-context] ligatures/substituation at word boundaries

2017-07-28 Thread Hans Hagen
On 7/27/2017 8:09 PM, Ulrike Fischer wrote: Is it possible to refer in fonts.handlers.otf.addfeature to the word boundary? The luatex manual speaks of a virtual "left_boundary" char, but I couldn't find a way to use it. \startluacode fonts.handlers.otf.addfeature { nam

[NTG-context] ligatures/substituation at word boundaries

2017-07-27 Thread Ulrike Fischer
Is it possible to refer in fonts.handlers.otf.addfeature to the word boundary? The luatex manual speaks of a virtual "left_boundary" char, but I couldn't find a way to use it. \startluacode fonts.handlers.otf.addfeature { name = "ltest", type = &quo

[NTG-context] Greek word sorting

2017-04-01 Thread Pablo Rodriguez
Hans, I have the following source: \mainlanguage[agr] \setupbodyfont[dejavu] \defineregister[indexgr][indexgrs] \setupregister[indexgr][pagenumber=no, balance=yes] \define[1]\grcindx{#1\index{#1}\indexgr{#1}} \setupregisters[n=3, pagenumber=no, method=default]

Re: [NTG-context] inter-word space in bibliographies

2015-12-23 Thread Wolfgang Schuster
Alan Bowen <mailto:bowenala...@gmail.com> 17. Dezember 2015 um 18:06 The appended code is supposed to allow reduction of the inter-word spacing in my bibliographies but it does not. Adjusting the \spaceskip in the setups for [tightspace] does not seem to make any difference. Any sugge

Re: [NTG-context] inter-word space in bibliographies

2015-12-23 Thread Alan Bowen
Thanks, Wolfgang. It does indeed! Season’s Best, Alan On Wed, Dec 23, 2015 at 9:00 AM, Wolfgang Schuster < schuster.wolfg...@gmail.com> wrote: > > Alan Bowen <bowenala...@gmail.com> > 17. Dezember 2015 um 18:06 > The appended code is supposed to allow reduction o

[NTG-context] inter-word space in bibliographies

2015-12-17 Thread Alan Bowen
The appended code is supposed to allow reduction of the inter-word spacing in my bibliographies but it does not. Adjusting the \spaceskip in the setups for [tightspace] does not seem to make any difference. Any suggestions will be most welcome. I am using the latest beta (ConTeXt ver

[NTG-context] Word wrap around framed text.

2015-03-19 Thread John Culleton
This passage works OK except for the lack of word wrap around for the framed text. -- \starttext \chapter{Introduction} The specialty food market has exploded. A combination of factors has led to exciting opportunities for food entrepreneurs. Retail sales of all

Re: [NTG-context] checking the first word in a command

2015-01-27 Thread Pablo Rodriguez
On 01/26/2015 10:26 PM, Hans Hagen wrote: On 1/26/2015 10:04 PM, Pablo Rodriguez wrote: [...] How can I specify that the replacer takes not only strings but complete words? local replacer = lpeg.replacer { { señora, la señora }, { señor, el señor }, } Many thanks

Re: [NTG-context] checking the first word in a command

2015-01-26 Thread Otared Kavian
the proper article? I could use the translate module, but the real case is more complex than the previous sample. What I need in the command is that it can check the first word in the command \Persona and assign el or la. Which is the right way to do this? \startluacode local replacer

[NTG-context] checking the first word in a command

2015-01-26 Thread Pablo Rodriguez
, but the real case is more complex than the previous sample. What I need in the command is that it can check the first word in the command \Persona and assign el or la. Which is the right way to do this? Many thanks for your help, Pablo -- http://www.ousia.tk

Re: [NTG-context] checking the first word in a command

2015-01-26 Thread Hans Hagen
the proper article? I could use the translate module, but the real case is more complex than the previous sample. What I need in the command is that it can check the first word in the command \Persona and assign el or la. Which is the right way to do this? \startluacode local replacer

Re: [NTG-context] checking the first word in a command

2015-01-26 Thread Hans Hagen
On 1/26/2015 10:04 PM, Pablo Rodriguez wrote: On 01/26/2015 09:24 PM, Otared Kavian wrote: Hi Hans, Nice code Hans!… But somehow your replacer code gives always « el » even in front of « señora »… It seems that your lua code for replacer sees « señor » and does not check whether it is «

Re: [NTG-context] checking the first word in a command

2015-01-26 Thread Pablo Rodriguez
On 01/26/2015 09:24 PM, Otared Kavian wrote: Hi Hans, Nice code Hans!… But somehow your replacer code gives always « el » even in front of « señora »… It seems that your lua code for replacer sees « señor » and does not check whether it is « señora » or not. If one modifies a little bit

Re: [NTG-context] Prevent hyphenation of the last word on a page

2014-07-09 Thread john Culleton
___ ___ Unlimited Disk, Data Transfer, PHP/MySQL Domain Hosting http://www.doteasy.com The brute force method is to study the output and wherever a word

Re: [NTG-context] Prevent hyphenation of the last word on a page

2014-07-05 Thread H. Özoguz
If its not possible at all, a small hint to this fact would help, too. So I could stop to search :) Huseyin ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist :

Re: [NTG-context] Prevent hyphenation of the last word on a page

2014-07-02 Thread H. Özoguz
http://article.gmane.org/gmane.comp.tex.context/45001/ Don’t know if luatex has brought any advance here… Thanks Thomas, but \brokenpenalty seems to be simply ignored or overwritten, no effect. See here a minexample: \brokenpenalty 1 \starttext

[NTG-context] Prevent hyphenation of the last word on a page

2014-07-01 Thread H. Özoguz
Hello, how to forbid hyphenation of the last word of page? Such that no word is broken onto two consecutive pages like this: page 1: Diese Unter- page 2: brechung ist unschön. I think the question is clear without minexample. Of course I can use \unhyphenated and things like that, but I

Re: [NTG-context] Prevent hyphenation of the last word on a page

2014-07-01 Thread Thomas A. Schmitz
On 01 Jul 2014, at 14:40, H. Özoguz h.oezo...@mmnetz.de wrote: Hello, how to forbid hyphenation of the last word of page? Such that no word is broken onto two consecutive pages like this: page 1: Diese Unter- page 2: brechung ist unschön. I think the question is clear without

[NTG-context] Protrusion with compound word hyphenation (||)

2014-07-01 Thread Rik Kabel
I notice that with compound words broken across lines protrusion does not get applied. This looks pretty rough when there are normal hyphenated words in the same paragraph. WE (exaggerated, but demonstrates the point): \setuppapersize[monarch] \definefontfeature [default]

Re: [NTG-context] Protrusion with compound word hyphenation (||)

2014-07-01 Thread Wolfgang Schuster
Am 02.07.2014 um 03:16 schrieb Rik Kabel cont...@rik.users.panix.com: I notice that with compound words broken across lines protrusion does not get applied. This looks pretty rough when there are normal hyphenated words in the same paragraph. WE (exaggerated, but demonstrates the point):

Re: [NTG-context] Character and word spacing

2014-05-31 Thread Hans Hagen
On 5/31/2014 4:14 PM, Rik Kabel wrote: My issue with Dowding (and with Gill) is that they suggest that the compositor has an obligation to change the author's text, without consultation and agreement, in order to meet his concept of better page makeup. Dowding's sensitivity to the appearance of

[NTG-context] Character and word spacing

2014-05-29 Thread Rik Kabel
in the belief that this leads to a pleasing presentation and improved readability. Among his recommendations is that an opening single quote together with the space preceding it should take up no more space than a normal word space, and similarly following a closing single quote; that the space

Re: [NTG-context] Character and word spacing

2014-05-29 Thread Hans Hagen
a uniform density across the page in the belief that this leads to a pleasing presentation and improved readability. Among his recommendations is that an opening single quote together with the space preceding it should take up no more space than a normal word space, and similarly following

[NTG-context] Minimal word-distance?

2013-08-26 Thread H. Özoguz
Beyond the possibility to influence the tolerance by \setuptolerance, is it possible to declare explicit the minimal allowed word-distance? I ask, because in some cases the distance between consecutive words is too low (already using \setuptolerance[verstrict]). Thanks. Huseyin

Re: [NTG-context] Minimal word-distance?

2013-08-26 Thread Marco Patzer
On 2013–08–26 H. Özoguz wrote: is it possible to declare explicit the minimal allowed word-distance? \starttext \spaceskip=1ex plus 1ex minus .2ex \input knuth \stoptext Marco signature.asc Description: Digital signature

[NTG-context] [***SPAM***] Re: Minimal word-distance?

2013-08-26 Thread H. Özoguz
\starttext \spaceskip=1ex plus 1ex minus .2ex \input knuth \stoptext Marco That simply overrides protrusion and justification, forcing a constant distance. The question is, only to add an minimal distance, wich has not to be undercut while protrusing and justifying. Huseyin

Re: [NTG-context] [***SPAM***] Re: Minimal word-distance?

2013-08-26 Thread Marco Patzer
On 2013–08–26 H. Özoguz wrote: \starttext \spaceskip=1ex plus 1ex minus .2ex \input knuth \stoptext Marco That simply overrides protrusion and justification, The following text has protrusion and is justified. \setuplayout [width=6cm] \definefontfeature [default] [default]

  1   2   3   >