<!ELEMENT ocx:doc (title|author|h1|h2|p|speech|pagebreak|ocx:s)*> <!ATTLIST ocx:doc sampleID CDATA #REQUIRED> <!ATTLIST ocx:doc corpusName CDATA #REQUIRED> <!ATTLIST ocx:doc xmlns:ocx CDATA #REQUIRED> <!ELEMENT ocx:ruby (#PCDATA|gaiji)*> <!ATTLIST ocx:ruby rt CDATA #REQUIRED> <!ELEMENT ocx:s EMPTY>
<!DOCTYPE doc [ <!ELEMENT doc (title, author, (info|div)*)> <!ELEMENT title (#PCDATA)> <!ELEMENT author (#PCDATA)> <!ATTLIST doc title CDATA #REQUIRED> <!ATTLIST doc author CDATA #REQUIRED> <!ELEMENT div (title,(section|p|info)*)> <!ATTLIST div title CDATA #REQUIRED> <!ELEMENT p (#PCDATA|r|gaiji)*> <!ELEMENT section (#PCDATA)> <!ELEMENT info EMPTY> <!ATTLIST info text CDATA #REQUIRED> <!ELEMENT r (#PCDATA|gaiji)*> <!ATTLIST r rt CDATA #REQUIRED> <!ELEMENT gaiji (#PCDATA)> <!ATTLIST gaiji text CDATA #REQUIRED> ]>
エディタに検索結果の列を貼り付けて置換で整形
.+# → #.+ →
-.+ →