On 16 August 2015 at 00:54, rch <[email protected]> wrote:
>     I am using asciidoc to generate an html which
> will be frame name="right" in a bigger html frameset
>
> The links in frame "right" should open in frame "lower"
>
> So the rendered html should read
>     «For more, <a href="uri" target="lower">click here</a>»
>
> I understand [1] that in order to get that facility
> I have to set :linkattrs:
>
> I have tried to do that in the following test file [2]
> However -
>   (1) with asciidoctor, the links are rendered correctly, as above
> but the rendering of the code section fails
>
>   (2) With asciidoc, the rendering of the code section is correct,
> but the links do not have target="lower". Instead they read
>     «For more, <a href="uri">click here, window="lower"</a>»

That is unfortunately because Asciidoc does not support :linkattrs:,
that is an asciidoctor addition.

>
> Q. How do I set linkattrs in asciidoc ?

You would need to make a custom link macro that understood the
linkattrs attribute.

Cheers
Lex


>
> RichardH
>
> [1] See «Target window and role attributes for links»
>    In http://asciidoctor.org/docs/asciidoc-writers-guide/
>
> [2] Test file reads
>
> = wot i did 2015
> just little me
>
> :linkattrs:
>
>
>
> [[2015y12m31dT23H59M59S]]
> ==   1.  This html; is made from infile
> [subs="macros"]
> ------------------------------------------------------------
> THIS HTML; IS MADE FROM INFILE
>      /home/rch/Public/Data/Calendars/wotidid/WOTIDID_2015.TXT
>  by Perl script
>
> /home/rch/Public/Data/Calendars/wotidid/iterative_cross_referencer_V006.pl
>  Nota bene; Line width should not exceed 100 characters
>              For more,
> link:./V006_RHFrame_LONG.html#2015y12m31dT23H59M59S[click here,
> window="lower"]
>
>
> ------------------------------------------------------------
>
> --
>
> --
> You received this message because you are subscribed to the Google Groups 
> "asciidoc" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/asciidoc.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/d/optout.

Reply via email to