[Docstring-checkins] CVS: dps/dps/transforms references.py,1.10,1.11
Status: Pre-Alpha
Brought to you by:
goodger
From: David G. <go...@us...> - 2002-03-13 02:47:38
|
Update of /cvsroot/docstring/dps/dps/transforms In directory usw-pr-cvs1:/tmp/cvs-serv4101/dps/dps/transforms Modified Files: references.py Log Message: minor changes (warmup) Index: references.py =================================================================== RCS file: /cvsroot/docstring/dps/dps/transforms/references.py,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** references.py 11 Mar 2002 03:40:58 -0000 1.10 --- references.py 13 Mar 2002 02:47:35 -0000 1.11 *************** *** 35,44 **** <target anonymous="1"> ! Corresponding references and targets are assigned names:: <paragraph> ! <reference anonymous="1" refname="_:1:_"> text ! <target anonymous="1" id="id1" name="_:1:_"> 2. Chained targets:: --- 35,44 ---- <target anonymous="1"> ! Corresponding references and targets are assigned ids:: <paragraph> ! <reference anonymous="1" refid="id1"> text ! <target anonymous="1" id="id1"> 2. Chained targets:: *************** *** 140,153 **** ref = self.doctree.anonymous_refs[i] ref['refname'] = name - #del ref['anonymous'] self.doctree.note_refname(ref) target = self.doctree.anonymous_targets[i] target['name'] = name ! #del target['anonymous'] self.doctree.note_implicit_target(target, self.doctree) if target.hasattr('refname'): self.doctree.note_indirect_target(target) ! if target.hasattr('refuri'): self.doctree.note_external_target(target) def resolve_chained_targets(self): --- 140,156 ---- ref = self.doctree.anonymous_refs[i] ref['refname'] = name self.doctree.note_refname(ref) target = self.doctree.anonymous_targets[i] target['name'] = name ! id = self.doctree.set_id(target) self.doctree.note_implicit_target(target, self.doctree) if target.hasattr('refname'): + #ref['refname'] = target['refname'] self.doctree.note_indirect_target(target) ! elif target.hasattr('refuri'): ! #ref['refuri'] = target['refuri'] self.doctree.note_external_target(target) + #else: + # ref['refid'] = id def resolve_chained_targets(self): *************** *** 318,325 **** <document> <paragraph> ! A labeled autonumbered footnote referece: <footnote_reference auto="1" refname="footnote"> <paragraph> ! An unlabeled autonumbered footnote referece: <footnote_reference auto="1"> <footnote auto="1"> --- 321,328 ---- <document> <paragraph> ! A labeled autonumbered footnote referece: <footnote_reference auto="1" refname="footnote"> <paragraph> ! An unlabeled autonumbered footnote referece: <footnote_reference auto="1"> <footnote auto="1"> *************** *** 340,348 **** <document> <paragraph> ! A labeled autonumbered footnote referece: <footnote_reference auto="1" refname="footnote"> 2 <paragraph> ! An unlabeled autonumbered footnote referece: <footnote_reference auto="1" refname="1"> 1 --- 343,351 ---- <document> <paragraph> ! A labeled autonumbered footnote referece: <footnote_reference auto="1" refname="footnote"> 2 <paragraph> ! An unlabeled autonumbered footnote referece: <footnote_reference auto="1" refname="1"> 1 *************** *** 364,368 **** auto-numbered footnote and reference are assigned name and refname attributes respectively, being the footnote number. ! After adding labels and reference text, the "auto" attributes can be ignored. --- 367,371 ---- auto-numbered footnote and reference are assigned name and refname attributes respectively, being the footnote number. ! After adding labels and reference text, the "auto" attributes can be ignored. *************** *** 373,377 **** symbols = [ ! # The first six entries below are from section 12.51 of # The Chicago Manual of Style, 14th edition. '*', # asterisk/star --- 376,380 ---- symbols = [ ! # Entries 1-4 and 6 below are from section 12.51 of # The Chicago Manual of Style, 14th edition. '*', # asterisk/star *************** *** 379,390 **** u'\u2021', # double dagger ‡ u'\u00A7', # section mark § - # (Should be parallels; perhaps u'\u2016' ‖? Not in HTML.) u'\u00B6', # paragraph mark (pilcrow) ¶ '#', # number sign # The entries below were chosen arbitrarily. u'\u2660', # spade suit ♠ - u'\u2663', # club suit ♣ u'\u2665', # heart suit ♥ u'\u2666', # diamond suit ♦ ] --- 382,393 ---- u'\u2021', # double dagger ‡ u'\u00A7', # section mark § u'\u00B6', # paragraph mark (pilcrow) ¶ + # (parallels ['||'] in CMoS) '#', # number sign # The entries below were chosen arbitrarily. u'\u2660', # spade suit ♠ u'\u2665', # heart suit ♥ u'\u2666', # diamond suit ♦ + u'\u2663', # club suit ♣ ] *************** *** 488,492 **** <document> <paragraph> ! The <substitution_reference refname="biohazard"> biohazard --- 491,495 ---- <document> <paragraph> ! The <substitution_reference refname="biohazard"> biohazard *************** *** 502,506 **** <document> <paragraph> ! The <image alt="biohazard" uri="biohazard.png"> symbol is deservedly scary-looking. --- 505,509 ---- <document> <paragraph> ! The <image alt="biohazard" uri="biohazard.png"> symbol is deservedly scary-looking. |