bugtex4ht - Bugs: bug #387, New commands for semantic elements

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #387: New commands for semantic elements

Submitted by:  Michal Hoftich <michal_h21>
Submitted on:  Wed 07 Feb 2018 03:45:13 PM EET  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Mon 12 Feb 2018 01:12:17 AM EET, comment #1:

whatever you say :). committed to tl, r46603.

Karl Berry <karl>
Project Administrator
Wed 07 Feb 2018 03:45:13 PM EET, original submission:

I've created some alternative commands to \HCode or \Tg. The idea is to define semantic names for logical elements of the document, such as titles, authors, sections etc. It is possible to assign HTML elements and attributes to these logical elements. There are commands for inline and block level elements, which should eliminate the need for constructs like \ifvmode\IgnorePar\fi\EndP etc.

I think it will be best to show some concrete examples:

The \NewLogicalBlock creates a new logical element. The used tag is configured using \SetTag, the attributes are set using \SetBlockProperty. The blocks are inserted to the document using \InlineElementStart ... \InlineElementEnd or \BlockElementStart ... \BlockElementEnd pairs. The start commands take two parameters, first is the logical block name, the second can be local parameters which shouldn't be used for the given logical block globally.

The main idea behind this mechanism is to allow easy work with new HTML5 elements and attributes for WAI-ARIA or Schema.org properties. I hope that this should allow us to make somehow more clear configurations for basic document building blocks.

Michal Hoftich <michal_h21>
Project Member

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by karl (Posted a comment)
  • -unavailable- added by michal_h21 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    1 latest change follows.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 12 Feb 2018 01:12:17 AM EETkarlOpen/ClosedOpen=>Closed
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray