Hi James James Mansion wrote: > This is the document I want to mark up: > > >>> > This is Application and ServerApplication so let's see how we do. > >>> > > I want 'Application' and 'ServerApplication' to be in monospace. > > So I define the following: > > >>> > [specialwords] > monospacedwords=P X Y > monospacedwords=ServerApplication Application > >>> > > > What happens is that the 'Server' in ServerApplication is not in monospace. Make almost any change, and it will be though: > > Change the P in the line before to Q, or pretty much anything else, > and its OK again - we recognise Application and also ServerApplication > and convert both to monospace.
The second monospaced declaration will overwrite the first and should probably be: monospacedwords=(?u)\\?\bServerApplication\b (?u)\\?\bApplication\b To delimit at word boundaries, use unicode and allow the words to be escaped. I can't replicate the weirdness in terms of the preceding line affecting the following. > > Remove X or Y and its OK too. > > > Any ideas? > > The other desire I'd have is that I'd like to use replacements as I used to in LaTeX. > > What I find however is that with: > > [replacements] > win=`Microsoft Windows` > > I'd really like this to be re-evaluated and monospaced - but it isn't (the back ticks are passed right through). > > Is it possible to get this effect - where I replace a shorthand? This is because replacements substitution comes after quotes substitution -- one way round this is to define as replacements2 [replacements2] win=`Microsoft Windows` and then redefine the various block subs attributes to include replacements2 before quotes -- probably more trouble than it's worth though. > > Maybe I haven't understood all the manual's subtlety! > > > Thanks > James > > Cheers, Stuart _______________________________________________ Asciidoc-discuss mailing list Asciidoc-discuss@metaperl.com http://metaperl.com/cgi-bin/mailman/listinfo/asciidoc-discuss