I never knew that quotes were so diverse.
It would simpler to define a quote character attributes rather than redefine the
markup for each backend. For example put this in the lang-de.conf file
[attributes] section:
# Left and right single and double quote characters.
lsq=‚
rsq=‘
ldq=„
rdq=“
The shared backend definitions would also need to be changed e.g.
singlequoted={lsq}{1?<span class="{1}">}|{1?</span>}{rsq}
doublequoted={ldq}{1?<span class="{1}">}|{1?</span>}{rdq}
This scheme has the added advantage of allowing quotes to be easily redefined on
a document by document basis.
What do you think?
Cheers, Stuart
On 27/01/11 04:47, zany wrote:
I'd like to propose the addition of language specific quotation marks
to the lang-*.conf files.
The proper quote marks differ somewhat in each language, see
http://en.wikipedia.org/wiki/Non-English_usage_of_quotation_marks
Here is an example for the german language (lang-de.conf)
[tags]
ifdef::basebackend-docbook[]
singlequoted={amp}#8218;{1?<phrase role="{1}">}|{1?</phrase>}{amp}
#8216;
doublequoted={amp}#8222;{1?<phrase role="{1}">}|{1?</phrase>}{amp}
#8220;
endif::basebackend-docbook[]
ifdef::basebackend-html[]
singlequoted={amp}#8218;{1?<span class="{1}">}|{1?</span>}{amp}#8216;
doublequoted={amp}#8222;{1?<span class="{1}">}|{1?</span>}{amp}#8220;
endif::basebackend-html[]
(The only difference here from default are the actual quote symbols.)
I'm using this in a custom conf file and it works as expected. It
would be a great addition to properly support (some major) languages
in the default conf files.
--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/asciidoc?hl=en.