View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0015623||Scribus||Story Editor / Text Frames||public||2019-03-29 11:00||2019-03-29 11:06|
|Summary||0015623: the html importer should recognize class="stylename"|
|Description||when loading an html file into a text frame, scribus should recognize the names of the css styles used in the document.|
html has two types of elements: block elements and inline elements. classes defined for the first one should become paragraph styles and the others character styles.
for a first implementation, having all styles created is probably good enough.
further enhancements could bring a confirmation dialog for the styles to be created (where styles can be removed from the list or moved from paragraph to character styles).
for the follwing block items scribus should add the styles as paragraph styles to the enclosed paragraphs:
for the following block items, scribus should create paragraph styles and apply them to the paragraph (instead of the paragraph with the name of the item that it would otherwise use)
- h1, h2, h3, h4, h5, h6
styles defined in this block elements can probably be ignored:
for inline elements should create and apply character styles (we should probably only support the ones that are already supported by scribus):
we can probably ignore:
a full list of elements can be found at https://developer.mozilla.org/en-US/docs/Web/HTML/Element
|Tags||No tags attached.|