mirror of
https://gitlab.freedesktop.org/xorg/proto/xorgproto.git
synced 2026-05-05 16:58:02 +02:00
spec: Make links to data types, requests, events & errors
Extracted each set of section ids to file and converted to a perl script:
next if m{^\d}; # skip over encoding section body lines
next if m{^[adfmnpv] }; # skip over encoding section body lines
s{<type>ACCESSCONTEXT</type>}{<link linkend="Data_Types:ACCESSCONTEXT">$&</link>}g;
[...]
s{<type>XFONTINFO</type>}{<link linkend="Data_Types:XFONTINFO">$&</link>}g;
s{<type>LISTofACCESSCONTEXT</type>}{<link linkend="Data_Types:ACCESSCONTEXT">$&</link>}g;
[...]
s{<type>LISTofXFONTINFO</type>}{<link linkend="Data_Types:XFONTINFO">$&</link>}g;
s{<function>NoOp</function>}{<link linkend="Requests:NoOp">$&</link>}g;
[...]
s{<function>CloseFont</function>}{<link linkend="Requests:CloseFont">$&</link>}g;
s{<errorname>Request</errorname>}{<link linkend="Errors:Request">$&</link>}g;
[...]
s{<errorname>Extensions</errorname>}{<link linkend="Errors:Extensions">$&</link>}g;
s{<function>KeepAlive</function>}{<link linkend="Events:KeepAlive">$&</link>}g;
[...]
s{<function>Extensions</function>}{<link linkend="Events:Extensions">$&</link>}g;
s{<title><link linkend="[^"]+">(.*?)</link></title>}{<title>$1</title>}g;
s{<row><entry><link linkend="[^"]+"><type>(.*?)</type></link>}{<row><entry><type>$1</type>}g;
s{<row><entry morerows=([\d'"]+)><link linkend="[^"]+"><type>(.*?)</type></link>}{<row><entry morerows=$1><type>$2</type>}g;
s{<link linkend="([^"]+)"><emphasis role="bold"><link linkend="\1">(.*?)</link></emphasis></link>}{<link linkend="$1"><emphasis role="bold">$2</emphasis></link>}g;
if ($_ =~ m{ id=['"]([^"]+)['"]}) { $sectionid = $1; }
s{<link linkend="$sectionid">(.*?)</link>}{$1}g;
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
parent
c7d49c2407
commit
710892b2ad
1 changed files with 287 additions and 287 deletions
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue