Convert things that look like man page references (i.e.,
command(number)) from the variety of different existing markup (which included <command>, <emphasis>, and <ulink>s to man2html CGI scripts) to a common format, which is <citerefentry> <refentrytitle>command</refentrytitle> <manvolnum>number</manvolnum> </citerefentry> although in the interests of keeping the changes as simple as possible for the translators, the above was flattened on to one line.
This commit is contained in:
parent
e1a68c8d01
commit
e51e782dab
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=3238
4 changed files with 530 additions and 564 deletions
|
@ -293,3 +293,23 @@ for example,
|
|||
|
||||
Convert the first lot to <command>...</command>
|
||||
|
||||
24. Fixed manual page references to use the right markup, which is
|
||||
|
||||
<citerefentry>
|
||||
<refentrytitle>page_name</refentrytitle>
|
||||
<manvolnum>number</manvolnum>
|
||||
</citerefentry>
|
||||
|
||||
Did this with a regexp search for
|
||||
|
||||
\([a-z-_\.]+\)(\([1-9]\))
|
||||
|
||||
and replacing with
|
||||
|
||||
<citerefentry><refentrytitle>\1</refentrytitle><manvolnum>\2</manvolnum>
|
||||
|
||||
Since most of the page references had <command>, <emphasis>, or
|
||||
<ulink> elements wrapped around them, you then have to sweep through the
|
||||
file looking for "><cite" and using C-c C-k to kill the markup
|
||||
immediately before and after.
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue