From: <g.s...@gm...> - 2003-03-29 16:09:33
|
>> 2. Change line 399 (in __init__) to:: > >in ecnode ? Yes, sorry, of course, in encode. > this would mean:: > > 399 if not (self.literal_block or self.literal): > 400 text = self.babel.quote_quotes(text) > 401 if self.literal_block or self.literal: > text = text.replace('"', '"\,') > > am i correct ? Yes. > and you want to replace every quote by a quote > followed by a comma ? No. I want to replace every quote by a quote followed by a **backslash** and a comma. (\, is a so-called "thinspace" in TeX.) (Please note that '"'.replace('"','"\,') and '"'.replace('"','"\\,') gives the same result in Python. At least this holds for Python 2.2.2 on win32.) If you try to convert the following lines to PDF (using the LaTeX-writer and pdflatex), you will see the problem of the current writer: ```````` ; ``""""`` ; ``´´´´`` ; ``''''`` ; ``"´'`` :: ```` """" ´´´´ '''' `"´' Best regards, Gunnar. -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage! |
From: <g.s...@gm...> - 2003-03-31 19:35:00
Attachments:
quotes.pdf
|
Hello Engelbert, I installed the latest docutils-snapshot and checked tests.zip. The results are very interesting: * When I use language_code = de quotes.tex is the same as yours. However, the doublequotes are missing in quotes.pdf (see attached file). * When I use language_code = en the first line of quotes.tex is:: \documentclass[10pt,english]{article} and quotes.pdf looks fine! To put the whole matter into a nutshell: The results of pdflatex seem to be different for \documentclass[10pt,ngerman]{article} on our two machines. Thus, this becomes a matter of pdflatex and not of docutils :))) On the other hand this is a little bit disappointing for me. Did you really try to pdflatexify the german version (\documentclass[10pt,ngerman]{article})??? If the answer is "Yes", the problem may be due to different LaTeX-versions. I guess you are running LaTeX on Linux? I am running LaTeX on Windows XP (latest MiKTeX-release). Best regards, Gunnar. -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage! |
From: <eng...@ss...> - 2003-04-01 13:56:39
|
On Mon, 31 Mar 2003 g.s...@gm... wrote: > I installed the latest docutils-snapshot and checked tests.zip. The results > are very interesting: > > * When I use language_code = de quotes.tex is the same as yours. However, > the doublequotes are missing in quotes.pdf (see attached file). > > * When I use language_code = en the first line of quotes.tex is:: > > \documentclass[10pt,english]{article} > > and quotes.pdf looks fine! > > To put the whole matter into a nutshell: The results of pdflatex seem to be > different for > > \documentclass[10pt,ngerman]{article} > > on our two machines. Thus, this becomes a matter of pdflatex and not of > docutils :))) > > On the other hand this is a little bit disappointing for me. Did you really > try to pdflatexify the german version > (\documentclass[10pt,ngerman]{article})??? thought so, but seams to be that if i try it now it gives the same as yours. > If the answer is "Yes", the problem may be due to different LaTeX-versions. lets say "No", i switched to {\\dq} for language de. -- BINGO: significantly improved cost structure --- Engelbert Gruber -------+ SSG Fintl,Gruber,Lassnig / A6410 Telfs Untermarkt 9 / Tel. ++43-5262-64727 ----+ |
From: engelbert g. <be...@ch...> - 2003-03-30 14:33:20
Attachments:
test_with_thin_space.pdf
|
On Sat, 29 Mar 2003 g.s...@gm... wrote: > > 399 if not (self.literal_block or self.literal): > > 400 text = self.babel.quote_quotes(text) > > 401 if self.literal_block or self.literal: > > text = text.replace('"', '"\,') > > > > am i correct ? > > Yes. i made it to:: if self.literal_block or self.literal: # a thinspace after every quote. text = text.replace('"', '"\\,') else: text = self.babel.quote_quotes(text) > > and you want to replace every quote by a quote > > followed by a comma ? > > No. I want to replace every quote by a quote followed by a **backslash** and > a comma. (\, is a so-called "thinspace" in TeX.) > > (Please note that '"'.replace('"','"\,') and '"'.replace('"','"\\,') gives > the same result in Python. At least this holds for Python 2.2.2 on win32.) so i made it '"\\,' to make it more clear to me. > If you try to convert the following lines to PDF (using the LaTeX-writer and > pdflatex), you will see the problem of the current writer: > > ```````` ; ``""""`` ; ``????`` ; ``''''`` ; ``"?'`` > > :: > > ```` > """" > ???? > '''' > `"?' tried it and made no sense to me. attached the file with the thinspace. this can easily be seen as the doublequote line is longer than the others, which is a bad thing -- engelbert gruber email: eng...@ss... |
From: <g.s...@gm...> - 2003-03-30 23:34:08
|
> attached the file with the thinspace. this can easily be seen as the > doublequote line is longer than the others, which is a bad thing I know, the thinspaces break the spacing. However, I don't know another way to get four doublequotes in a row inside of inline-literals or literal-blocks. If I use latex2e.py without the thinspace-modification the generated PDF shows doubleqoute-backslash-doublequote-backslash (inline literals) or nothing at all (literal-blocks). The idea of using thinspaces arose when I read section "1.3 Quotation marks" of http://www.ce.chalmers.se/~thomasl/dochelp/lashort.pdf Maybe any LaTeX-Guru can help us here??? Rgds, Gunnar. -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage! |
From: David G. <go...@py...> - 2003-03-31 04:38:51
|
g.s...@gm... wrote: > Maybe any LaTeX-Guru can help us here??? It may be worthwhile asking on the Doc-SIG list, since ``"""`` comes up regularly in Python docs. -- David Goodger |
From: <eng...@ss...> - 2003-03-31 07:20:32
Attachments:
tests.zip
|
On Mon, 31 Mar 2003 g.s...@gm... wrote: > > > attached the file with the thinspace. this can easily be seen as the > > doublequote line is longer than the others, which is a bad thing > > I know, the thinspaces break the spacing. However, I don't know another way > to get four doublequotes in a row inside of inline-literals or > literal-blocks. > > If I use latex2e.py without the thinspace-modification the generated PDF > shows doubleqoute-backslash-doublequote-backslash (inline literals) or nothing > at all (literal-blocks). i can see no backslash there. before adding support for inline_literals :: ```````` ; ``""""`` ; ``''''`` ; gives latex:: \texttt{````} ; \texttt{``''``''} ; \texttt{''''} ; after changing to respect inline literals:: \texttt{````} ; \texttt{""""} ; \texttt{''''} ; which is typeset correctly here. also for "-l de". > The idea of using thinspaces arose when I read section "1.3 Quotation marks" > of > > http://www.ce.chalmers.se/~thomasl/dochelp/lashort.pdf > > Maybe any LaTeX-Guru can help us here??? > > Rgds, > Gunnar. > > -- BINGO: definitive merger agreement --- Engelbert Gruber -------+ SSG Fintl,Gruber,Lassnig / A6410 Telfs Untermarkt 9 / Tel. ++43-5262-64727 ----+ |
From: <g.s...@gm...> - 2003-03-31 20:11:29
|
Engelbert, I just found out that in case of \documentclass[10pt,ngerman]{article} the control sequence \dq generates doublequotes. However, this control sequence cannot be used with \documentclass[10pt,english]{article}. Thus, I recommend that for language_code = de latex2e.py should replace doublequotes with \db inside of inline literals or literal blocks. This fixes my problem and should work for you, too. Best regards, Gunnar. -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage! |