Date: 29 Jun 2000 13:54:59 +0200 From: Rasmus Kaj <kaj@raditex.se> To: nobreak@hongik.com Cc: Rasmus Kaj <kaj@raditex.se> Subject: Re: How can I write '@' character in DocBook <screen> entity? Message-ID: <84itusk8h8.fsf@frodo.sickla.raditex.se> In-Reply-To: Seung-young Kim's message of "Thu, 29 Jun 2000 13:20:07 %2B0900" References: <3959D980.444591D4@hongik.com> <84lmzqox8c.fsf@frodo.sickla.raditex.se> <395ACE77.BB456E1D@hongik.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "SK" == Seung-young Kim <nobreak@hongik.com> writes: SK> Thank you for your answer. SK> I found a entity ``cdata'', is it correct uses? SK> <screen><![cdata[ SK> ]]></screen> I don't know. When I include files (source examples, etc), I run them trough "sed -e 's/&/\&/g' -e 's/</\</g' -e 's/>/\>/g'" (or sometimes a more advanced script which recognices some keywords etc (e.g. 's#//.*#<comment>&</comment># to mark up C++ comments)) Also, I usually create entities for them, like <!ENTITY src.sample SYSTEM "src/sample.sgml"> and then use it like this: <programlisting>&src.sample;</programlisting> (the ENTITY part must, as far as I can see, be part of the DOCTYPE declaration of the document, like this: <!DOCTYPE book PUBLIC "-//Davenport//DTD DocBook V3.0//EN" [ <!ENTITY src.sample SYSTEM "src/sample.sgml"> ]> There might be a simpler way, but this is the way I do it ... -- Rasmus Kaj -------------------- rasmus@kaj.se - http://Raditex.se/~kaj/ \ If I look confused it's because I'm thinking. -Samuel Goldwyn \------------------------------------------------- http://Raditex.se/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?84itusk8h8.fsf>