All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kr.motd.maven.sphinx.dist.docutils.transforms.references$py.class Maven / Gradle / Ivy

There is a newer version: 2.10.0
Show newest version
????1?f$0R(Lorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject;__doc__&
Transforms for resolving references.
org/python/core/PyStringfromInterned.(Ljava/lang/String;)Lorg/python/core/PyString;	

org/python/core/PyFrame
	setglobal/(Ljava/lang/String;Lorg/python/core/PyObject;)V
setline(I)V
reStructuredText
__docformat__setlocal
sysorg/python/core/imp 	importOneH(Ljava/lang/String;Lorg/python/core/PyFrame;I)Lorg/python/core/PyObject;"#
!$re&docutils(java/lang/String*nodes,utils.
importFrom\(Ljava/lang/String;[Ljava/lang/String;Lorg/python/core/PyFrame;I)[Lorg/python/core/PyObject;01
!2docutils.transforms4TransformError6	Transform8org/python/core/PyObject:getname.(Ljava/lang/String;)Lorg/python/core/PyObject;<=
>PropagateTargets@PropagateTargets$1
__module__C__name__E}
    Propagate empty internal targets to the next element.

    Given the following nodes::

        
        
        
        
            This is a test.

    PropagateTargets propagates the ids and names of the internal
    targets preceding the paragraph to the paragraph itself::

        
        
        
        
            This is a test.
    Gorg/python/core/PyI
newInteger(I)Lorg/python/core/PyInteger;KL
JMdefault_priorityOEmptyObjectsorg/python/core/PyObject;QR	JSorg/python/core/PyFunctionU	f_globalsLorg/python/core/PyObject;WX	Yapply$2getlocal(I)Lorg/python/core/PyObject;\]
^document`__getattr__b=
;ctraversee	getglobalg=
htargetj__call__S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;lm
;n__iter__()Lorg/python/core/PyObject;pq
;r(ILorg/python/core/PyObject;)Vt
u
isinstancewparentyTextElement{m(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;l}
;~__nonzero__()Z??
;?hasattr?refid?refuri?refname?	__debug__?len?_eq6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject;??
;?&error: block-level target has children?AssertionError?
makeExceptionS(Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyException;??
J?	next_node?True?ascend?g(Lorg/python/core/ThreadState;[Lorg/python/core/PyObject;[Ljava/lang/String;)Lorg/python/core/PyObject;l?
;?None?_isnot??
;?	Invisible?__not__?q
;?
Targetable?ids?__getitem__??
;?extend?names?expect_referenced_by_name?org/python/core/PyDictionary?([Lorg/python/core/PyObject;)V??
??__setattr__?
;?expect_referenced_by_id?__setitem__7(Lorg/python/core/PyObject;Lorg/python/core/PyObject;)V??
;?__iternext__?q
;?update?getattr??(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;l?
;?org/python/core/PyList?
??
note_refid?f_lastiI??	??X	J?!docutils/transforms/references$py?Lorg/python/core/PyCode;[?	??j(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;)V??
V?apply?getf_locals?q
?B?	??	makeClassa(Ljava/lang/String;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;)Lorg/python/core/PyObject;??
J?java/util/Arrays?fill(([Ljava/lang/Object;Ljava/lang/Object;)V??
??AnonymousHyperlinks?AnonymousHyperlinks$3?
    Link anonymous references to targets.  Given::

        
            
                internal
            
                external
        
        

    Corresponding references are linked via "refid" or resolved via "refuri"::

        
            
                text
            
                external
        
        
    ?apply$4	reference?get	anonymousappend_ne?
;reporter
error]Anonymous hyperlink mismatch: %s references but %s targets.
See "backrefs" attribute for IDs.org/python/core/PyTuple
?_mod?
;set_idproblematic	rawsourceadd_backrefreplace_selfzip unpackSequence8(Lorg/python/core/PyObject;I)[Lorg/python/core/PyObject;"#
J$
referenced&resolved(??	?*??	?,IndirectHyperlinks.IndirectHyperlinks$5N
    a) Indirect external references::

           
               
                   indirect external
           
           

       The "refuri" attribute is migrated back to all indirect targets
       from the final direct target (i.e. a target not referring to
       another indirect target)::

           
               
                   indirect external
           
           

       Once the attribute is migrated, the preexisting "refname" attribute
       is dropped.

    b) Indirect internal references::

           
           
               
                   indirect internal
           
           

       Targets which indirectly refer to an internal target become one-hop
       indirect (their "refid" attributes are directly set to the internal
       target's "id"). References which indirectly refer to an internal
       target become direct internal references::

           
           
               
                   indirect internal
           
           
    1apply$6indirect_targets4resolve_indirect_target6resolve_indirect_references83?	?:resolve_indirect_target$7_is=?
;>nameids@transformerBunknown_reference_resolversDnonexistent_indirect_targetFnote_referenced_byHidJmultiply_indirectLcircular_indirect_referenceN__delattr__(Ljava/lang/String;)VPQ
;R_inT?
;U__delitem__(Lorg/python/core/PyObject;)VWX
;Y<?	?[nonexistent_indirect_target$8indirect_target_error^>which is a duplicate, and cannot be used as a unique reference`which does not existb]?	?dcircular_indirect_reference$9forming a circular referencegf?	?iindirect_target_error$10l"%s" nrefnamesprefidsr	(id="%s")t_iaddv?
;w7Indirect hyperlink target %s refers to target "%s", %s.y	base_node{uniq}k?	?resolve_indirect_references$11name???	??0?	??ExternalTargets?ExternalTargets$12?
    Given::

        
            
                direct external
        

    The "refname" attribute is replaced by the direct "refuri" attribute::

        
            
                direct external
        
    ?apply$13??	????	??InternalTargets?InternalTargets$14apply$15resolve_reference_ids???	??resolve_reference_ids$16?
        Given::

            
                
                    direct internal
            

        The "refname" attribute is replaced by "refid" linking to the target's
        "id"::

            
                
                    direct internal
            
        ???	????	??	Footnotes?Footnotes$17?
    Assign numbers to autonumbered footnotes, and resolve links to footnotes,
    citations, and their references.

    Given the following ``document`` as input::

        
            
                A labeled autonumbered footnote referece:
                
            
                An unlabeled autonumbered footnote referece:
                
            
                
                    Unlabeled autonumbered footnote.
            
                
                    Labeled autonumbered footnote.

    Auto-numbered footnotes have attribute ``auto="1"`` and no label.
    Auto-numbered footnote_references have no reference text (they're
    empty elements). When resolving the numbering, a ``label`` element
    is added to the beginning of the ``footnote``, and reference text
    to the ``footnote_reference``.

    The transformed result will be::

        
            
                A labeled autonumbered footnote referece:
                
                    2
            
                An unlabeled autonumbered footnote referece:
                
                    1
            
                




© 2015 - 2024 Weber Informatics LLC | Privacy Policy