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]

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

2013-08-26 Thread H. Özoguz
The following text has protrusion and is justified. \setuplayout [width=6cm] \definefontfeature [default] [default] [protrusion=pure] \setupalign [hanging] \showframe \starttext \spaceskip=1ex plus 1ex minus .2ex \input knuth \stoptext / forcing a constant distance. / If you provide

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

2013-08-26 Thread Peter Münster
On Mon, Aug 26 2013, H. Özoguz wrote: The question is, only to add an minimal distance, wich has not to be undercut \spaceskip=1ex plus 1ex minus 0ex or just \spaceskip=1ex plus 1ex -- Peter ___

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

2013-08-26 Thread Marco Patzer
a constant distance. / If you provide stretch and shrink the distance is not constant. Thank you! I dont understand this command, what does 1ex plus 1ex minus .2ex excactly mean? It's the inter-word glue, which is usually a property of the font and is usually not altered by the user. However

Re: [NTG-context] Too many word-breaks in consecutive lines

2013-04-13 Thread H. Özoguz
100 % automated typesetting with 100 % perfect results is impossible Hans, I dont think so. Manual typesetting is not 100 % perfect, too. Why automated typesetting shouldn't be able to obtain the same results, like men – some day. Of course that needs much more than just typesetting-rules,

Re: [NTG-context] Too many word-breaks in consecutive lines

2013-04-13 Thread Hans Hagen
On 4/13/2013 11:53 AM, H. Özoguz wrote: 100 % automated typesetting with 100 % perfect results is impossible Hans, I dont think so. Manual typesetting is not 100 % perfect, too. Why automated typesetting shouldn't be able to obtain the same results, like men – some day. Of course that needs

[NTG-context] Too many word-breaks in consecutive lines

2013-04-12 Thread H. Özoguz
Hi (sorry for many questions today :)), with German you often have the problem, that words are long (most often much longer than english words). So ConTeXt have to break them. But there is a typographical rule: Do not break words at the end of lines in more than three consecutive lines. So

Re: [NTG-context] Too many word-breaks in consecutive lines

2013-04-12 Thread Wolfgang Schuster
Am 12.04.2013 um 11:02 schrieb H. Özoguz h.oezo...@mmnetz.de: Hi (sorry for many questions today :)), with German you often have the problem, that words are long (most often much longer than english words). So ConTeXt have to break them. But there is a typographical rule: Do not break

Re: [NTG-context] Too many word-breaks in consecutive lines

2013-04-12 Thread Thomas A. Schmitz
On 04/12/2013 11:13 AM, Wolfgang Schuster wrote: You can add \setupalign[stretch] to your document which increases the space between words, it is only a small value and helps in some cases. I could have sworn there was a way to set the maximum number of consecutive lines which can be

Re: [NTG-context] Too many word-breaks in consecutive lines

2013-04-12 Thread Marcin Borkowski
Dnia 2013-04-12, o godz. 12:20:20 Thomas A. Schmitz thomas.schm...@uni-bonn.de napisał(a): On 04/12/2013 11:13 AM, Wolfgang Schuster wrote: You can add \setupalign[stretch] to your document which increases the space between words, it is only a small value and helps in some cases. I

Re: [NTG-context] Too many word-breaks in consecutive lines

2013-04-12 Thread Hans Hagen
On 4/12/2013 8:28 PM, Marcin Borkowski wrote: In TeX it is possible to discourage two consecutive hyphens, but there is no way to prohibit or strongly discourage three or more. Technically, this would mean a slight extension of the current algorithm by keeping track of the number of hyphens in

[NTG-context] extracting word count from a *.words file

2012-04-20 Thread Jelle Huisman
Hello all, Here is another question. Consider this test file: \starttext \setupspellchecking[state=start,method=2] \ctxlua{languages.words.threshold=3} \input knuth \stoptext Typesetting this file produces a word list 'test.words' which ends like this: [threshold]=1, [total]=122, [version

Re: [NTG-context] extracting word count from a *.words file

2012-04-20 Thread Philipp Gesang
Hi again, On 2012-04-20 16:32, Jelle Huisman wrote: Hello all, Here is another question. Consider this test file: \starttext \setupspellchecking[state=start,method=2] \ctxlua{languages.words.threshold=3} \input knuth \stoptext Typesetting this file produces a word list 'test.words

Re: [NTG-context] extracting word count from a *.words file

2012-04-20 Thread Marco
On 2012-04-20 Jelle Huisman je...@jhnet.nl wrote: Is there a way to extract the value for [total] ('122' in this case) so that I can use that value somewhere else, e.g. in a project file where I want to present a word count. I used the word count some time ago. Here's the code I used. I have

Re: [NTG-context] extracting word count from a *.words file

2012-04-20 Thread Jelle Huisman
On 04/20/2012 04:52 PM, Marco wrote: On 2012-04-20 Jelle Huisman je...@jhnet.nl wrote: Is there a way to extract the value for [total] ('122' in this case) so that I can use that value somewhere else, e.g. in a project file where I want to present a word count. I used the word count some

Re: [NTG-context] extracting word count from a *.words file

2012-04-20 Thread Jelle Huisman
Typesetting this file produces a word list 'test.words' which ends like this: [threshold]=1, [total]=122, [version]=1, } Is there a way to extract the value for [total] ('122' in this case) so that I can use that value somewhere else, e.g. in a project file where I want to present a word count

[NTG-context] Word-wrap/hyphenation with very large font size not working consistently

2011-12-03 Thread Pavneet Arora
I am trying to typeset some signs for a construction site. I enclose a (somewhat contrived) for consideration. What I am having difficulty with is to get word wrap and interline spacing to work consistently. I am using \framed, but if there is a better way please let me know. The trouble I

Re: [NTG-context] Word-wrap/hyphenation with very large font size not working consistently

2011-12-03 Thread Wolfgang Schuster
Am 03.12.2011 um 16:31 schrieb Pavneet Arora: I am trying to typeset some signs for a construction site. I enclose a (somewhat contrived) for consideration. What I am having difficulty with is to get word wrap and interline spacing to work consistently. I am using \framed

Re: [NTG-context] Word-wrap/hyphenation with very large font size not working consistently

2011-12-03 Thread Pavneet Arora
, Wolfgang Schuster wrote: Am 03.12.2011 um 16:31 schrieb Pavneet Arora: I am trying to typeset some signs for a construction site. I enclose a (somewhat contrived) for consideration. What I am having difficulty with is to get word wrap and interline spacing to work consistently. I am using

Re: [NTG-context] Word-wrap/hyphenation with very large font size not working consistently

2011-12-03 Thread Wolfgang Schuster
Am 03.12.2011 um 17:55 schrieb Pavneet Arora: Thanks Wolfgang, I see that the main change was align=broad as an option to \framed. Could you tell me what that does, or point me to where it is described? I see broad described in terms of width and height but not align under the

Re: [NTG-context] Word-wrap/hyphenation with very large font size not working consistently

2011-12-03 Thread Pavneet Arora
Thanks for the clarification! I'll keep that in mind. On 11-12-03 12:14 PM, Wolfgang Schuster wrote: Am 03.12.2011 um 17:55 schrieb Pavneet Arora: Thanks Wolfgang, I see that the main change was align=broad as an option to \framed. Could you tell me what that does, or point me to where it

Re: [NTG-context] accessibility of PDF (inter word space

2011-10-28 Thread Hans Hagen
On 27-10-2011 11:22, Stefan Goßrau wrote: thanks for your answer Hans. Now i found some examples. Bot for me it doesnt work. I tried the documents in http://minimals.contextgarden.net/current/context/test/doc/context/tests/mkiv/tags/ but there are no spaces between words in reflow-mode. I am

Re: [NTG-context] accessibility of PDF (inter word space

2011-10-27 Thread Stefan Goßrau
version: 2011.10.14 LG stefan Original-Nachricht Datum: Sat, 22 Oct 2011 09:46:30 +0200 Von: Hans Hagen pra...@wxs.nl An: mailing list for ConTeXt users ntg-context@ntg.nl CC: Stefan Goßrau redst...@gmx.net Betreff: Re: [NTG-context] accessibility of PDF (inter word space

Re: [NTG-context] accessibility of PDF (inter word space

2011-10-22 Thread Hans Hagen
On 21-10-2011 12:44, Stefan Goßrau wrote: Hello, I am very new in Context and have my first Problems. I read a lot, but can't find the solution. I try to produce accessible PDF. One Point is, that they have to be reflowed in a PDF-Viewer. But if I reflow my documents, there are no

[NTG-context] accessibility of PDF (inter word space

2011-10-21 Thread Stefan Goßrau
Hello, I am very new in Context and have my first Problems. I read a lot, but can't find the solution. I try to produce accessible PDF. One Point is, that they have to be reflowed in a PDF-Viewer. But if I reflow my documents, there are no interwordspaces. I know that there is no

[NTG-context] Long word out of text area/No proper line wrap with flushleft

2011-09-20 Thread Stefan Müller
, in this example the aaa...a-word is not moved to the next line but written partially into the margin instead. I understand this behaviour for right-left-aligned text to avoid extremely stretched-out spaces, but here it doesn't seem right to me. Can I change this behaviour somehow? Thanks

Re: [NTG-context] Long word out of text area/No proper line wrap with flushleft

2011-09-20 Thread Andreas Harder
On 20.09.2011, at 11:31, Stefan Müller wrote: Hi again, in one of my documents I want the text to be flushedleft and not hyphenated, see the following example. \setupalign[flushleft, nothyphenated] \starttext \showlayout bb bb bb bb bb

Re: [NTG-context] Long word out of text area/No proper line wrap with flushleft

2011-09-20 Thread Stefan Müller
Ah, thank you very much! Can you tell me why it's called broad? I don't get the intention behind this key... Stefan On 20.09.2011 11:34, Andreas Harder wrote: On 20.09.2011, at 11:31, Stefan Müller wrote: Hi again, in one of my documents I want the text to be flushedleft and not

Re: [NTG-context] Long word out of text area/No proper line wrap with flushleft

2011-09-20 Thread Andreas Harder
On 20.09.2011, at 11:50, Stefan Müller wrote: Ah, thank you very much! Can you tell me why it's called broad? I don't get the intention behind this key… I’ve no clue. Wolfgang Schuster postet this solution a several times, so I've remembered it. Andreas

[NTG-context] Random selection of a word in a set with lua and mkiv

2011-06-08 Thread Otared Kavian
Hi all, Assuming that we have a set of words or expressions, say {Maths, Physics, Algebra, Analysis, Chemistry, Geometry, Wave equation, Schrödinger equation} is it possible to write a lua function, named for instance randomselectword which returns one of the words or expressions

Re: [NTG-context] Random selection of a word in a set with lua and mkiv

2011-06-08 Thread Hans Hagen
On 8-6-2011 6:52, Otared Kavian wrote: Hi all, Assuming that we have a set of words or expressions, say {Maths, Physics, Algebra, Analysis, Chemistry, Geometry, Wave equation, Schrödinger equation} is it possible to write a lua function, named for instance randomselectword

Re: [NTG-context] Random selection of a word in a set with lua and mkiv

2011-06-08 Thread Mathieu Dupont
To: ntg-context@ntg.nl Subject: [NTG-context] Random selection of a word in a set with lua and mkiv Hi all, Assuming that we have a set of words or expressions, say {Maths, Physics, Algebra, Analysis, Chemistry, Geometry, Wave equation, Schrödinger equation} is it possible to write

Re: [NTG-context] Random selection of a word in a set with lua and mkiv

2011-06-08 Thread Hans Hagen
On 8-6-2011 7:00, Mathieu Dupont wrote: This following code works, except that the first random is always the same (Analysis) for some reason. Anyone knows why ? \enableregime[il1]\starttext\startluacode userdata = userdata or {} math.randomseed( os.time() )function

Re: [NTG-context] Random selection of a word in a set with lua and mkiv

2011-06-08 Thread Mathieu Dupont
: pra...@wxs.nl To: ntg-context@ntg.nl CC: mathieudup...@hotmail.com Subject: Re: [NTG-context] Random selection of a word in a set with lua and mkiv On 8-6-2011 7:00, Mathieu Dupont wrote: This following code works, except that the first random is always the same (Analysis

Re: [NTG-context] Random selection of a word in a set with lua and mkiv

2011-06-08 Thread Otared Kavian
of a word in a set with lua and mkiv Hi all, Assuming that we have a set of words or expressions, say {Maths, Physics, Algebra, Analysis, Chemistry, Geometry, Wave equation, Schrödinger equation} is it possible to write a lua function, named for instance randomselectword which

Re: [NTG-context] Random selection of a word in a set with lua and mkiv

2011-06-08 Thread Hans Hagen
On 8-6-2011 10:12, Otared Kavian wrote: Thank you very much for your quick thoughts and solutions! It is amazing how fast one gets a solution to one's problem on this list… well, this was an easy one -) Just a note for Mathieu: I think that \enableregime[il1] depends on the input

[NTG-context] Short words in word list

2011-03-02 Thread Florian Wobbe
Hi, \usemodule[s-lan-03] \setupspellchecking[state=start,method=2] \setupspellchecking[list=words] \ctxlua{languages.words.tracers.showwords()} prints a word list of words with 4+ letters. Is there a way to also include 1-, 2-, and 3-letter words? Thanks, Florian

Re: [NTG-context] Word count

2010-10-25 Thread Florian Wobbe
On Oct 21, 2010, at 19:50 , Hans Hagen wrote: On 21-10-2010 7:39, Otared Kavian wrote: On 20 oct. 2010, at 21:43, Hans Hagen wrote: On 20-10-2010 7:08, Matija Šuklje wrote: […] I did implement it for Mojca indeed. A made it a bit more clever so that you can play with it. Thanks

Re: [NTG-context] Word count

2010-10-25 Thread Hans Hagen
On 25-10-2010 9:21, Florian Wobbe wrote: Thanks, this is a great feature! BTW, I just tried it with the example text from http://wiki.contextgarden.net/Spellchecker and noticed that it misses all words containing the german letter ß like: deßgleichen, deßhalb, Fleiß, weiß, ... fixed in

Re: [NTG-context] Word count

2010-10-25 Thread Matija Šuklje
with a certain word or character limitation and just using 'wc' on the whole source file(s) would not be relevant, is there a way to do this in ConTeXt? http://www.ntg.nl/pipermail/ntg-context/2006/020549.html […] \setupspellchecking[state=start,method=2] \setupspellchecking[list=tufte] \input

Re: [NTG-context] Word count

2010-10-21 Thread Otared Kavian
On 20 oct. 2010, at 21:43, Hans Hagen wrote: On 20-10-2010 7:08, Matija Šuklje wrote: […] I did implement it for Mojca indeed. A made it a bit more clever so that you can play with it. Thanks a lot Hans! That's fantastic… However the file created by ConTeXt is \jobname.words: so

Re: [NTG-context] Word count

2010-10-21 Thread Hans Hagen
On 21-10-2010 7:39, Otared Kavian wrote: On 20 oct. 2010, at 21:43, Hans Hagen wrote: On 20-10-2010 7:08, Matija Šuklje wrote: […] I did implement it for Mojca indeed. A made it a bit more clever so that you can play with it. Thanks a lot Hans! That's fantastic… However the file

[NTG-context] Word count

2010-10-20 Thread Matija Šuklje
Hullo, since many texts (academic and otherwise) have to comply with a certain word or character limitation and just using 'wc' on the whole source file(s) would not be relevant, is there a way to do this in ConTeXt? Also it would be very useful, if it was possible to get some more detailed

Re: [NTG-context] Word count

2010-10-20 Thread Wolfgang Schuster
Am 20.10.2010 um 15:26 schrieb Matija Šuklje: Hullo, since many texts (academic and otherwise) have to comply with a certain word or character limitation and just using 'wc' on the whole source file(s) would not be relevant, is there a way to do this in ConTeXt? http://www.ntg.nl

Re: [NTG-context] Word count

2010-10-20 Thread Matija Šuklje
Dne sreda 20. oktobra 2010 ob 17:54:27 je Wolfgang Schuster napisal(a): Am 20.10.2010 um 15:26 schrieb Matija Šuklje: Hullo, since many texts (academic and otherwise) have to comply with a certain word or character limitation and just using 'wc' on the whole source file(s) would

Re: [NTG-context] Word count

2010-10-20 Thread Hans Hagen
On 20-10-2010 7:08, Matija Šuklje wrote: Dne sreda 20. oktobra 2010 ob 17:54:27 je Wolfgang Schuster napisal(a): Am 20.10.2010 um 15:26 schrieb Matija Šuklje: Hullo, since many texts (academic and otherwise) have to comply with a certain word or character limitation and just using 'wc

Re: [NTG-context] Word count

2010-10-20 Thread Matija Šuklje
Dne sreda 20. oktobra 2010 ob 21:43:38 je Hans Hagen napisal(a): On 20-10-2010 7:08, Matija Šuklje wrote: I did implement it for Mojca indeed. A made it a bit more clever so that you can play with it. Cool, thanks :) Will check it out some day soon-ish. Cheers, Matija -- gsm:+386 41

Re: [NTG-context] Word count

2010-10-20 Thread Wolfgang Schuster
Am 20.10.2010 um 22:14 schrieb Matija Šuklje: Will check it out some day soon-ish. Another example from the spellchecker: http://wiki.contextgarden.net/Spellchecker Wolfgang ___ If your question is of interest

[NTG-context] Weird \Word behaviour

2010-06-14 Thread Vyatcheslav Yatskovsky
))) Can please someone explain me why it happens? \def \sps {special-purpose digital computers} \starttext \Word{\sps}%Special-purpose digital computers \Word{\sps} %special-purpose Digital computers \stoptext -- Best Regards, Vyatcheslav Yatskovsky

[NTG-context] redefine word Figure for a specific language

2010-05-02 Thread Fabio Tiriticco
Hi all, this is my first post here, and only because I couldn't find an answer in the database. I am using ConTeXt for an italian document (I used LaTeX years ago for my thesis and I like ConTeXt much better!) I would like to redefine the word used in figure captions. The default english is Figure

Re: [NTG-context] redefine word Figure for a specific language

2010-05-02 Thread Otared Kavian
ConTeXt much better!) I would like to redefine the word used in figure captions. The default english is Figure. If I switch to \mainlanguage[it] the word becomes Fig. How can I arbitrarily decide what to show there? thanks for the attention, Fabio

Re: [NTG-context] MS Word/HTML examples needed

2009-06-11 Thread Vyatcheslav Yatskovsky
Thanks for kind replies. So, does anyone dare to send me an example document with footnotes? ;) Regards, Vyatcheslav ___ If your question is of interest to others as well, please add an entry to the Wiki!

[NTG-context] MS Word/HTML examples needed

2009-06-10 Thread Vyatcheslav Yatskovsky
Hello, Seems that my GUI-based Word-to-Text converter didn't gain much attention, but that's OK. I'm expected to write an article about it for the upcoming conference, so I want to ask everybody to send me any documents (MS Word/HTML) that are to be converted into TeX. I expect to test my

  1   2   3   >