Jump to content

Alexander Sviridenkov

Members
  • Content Count

    259
  • Joined

  • Last visited

  • Days Won

    26

Posts posted by Alexander Sviridenkov


  1. 1 minute ago, Jacek Laskowski said:

     

    I know that the attribute will not be removed because the library does not know that it is unnecessary.
    But notice that in the example I gave you, the alt="nothing" attribute appears twice in one tag! 

    This is an example of ugly, junk HTML code that I have to clean up. I would like to do it as automatically as possible, because manual work is very tedious.
    I imagined that your parser could make it easier for me.

    Yes, duplicates will be removed.

    You can send me sample HTML to support at delphihtmlcomponents.com, I'll send you back processed HTML and code.


  2. @Jacek Laskowski, no, only duplicated attributes are removed automatically. Library doesn't know do you need alt="nothing" attribute or not, you should decode this yourself.

    Duplicated CSS properties can be removed by one line code, but this is not done automatically too, because by default (if there was no style changes) style attribute remains unchanged.


  3. 14 hours ago, Jacek Laskowski said:

    I have one question, is it possible to optimize HTML and CSS code with your library, i.e. remove unnecessary attributes?
    For example, I have a code:

    
    <img src="logo.jpg" alt="nothing" style="color: white; border: 50px; color: black" alt="nothing" ><div>

    This tag has an unnecessary attribute alt="nothing" and one of the CSS attributes: "color: white" because both are overwritten.


    To remove such redundant attributes you would need to parse HTML and CSS (what your library does) and build HTML and CSS from the metadata again.

     

    Is this possible in the HTML Library?

     

    Yes, this is possible. Simply iterate DOM after parsing (use Count and Elements or NextElement), remove all unecessary attributes and tags and use Document,OuterHTML to get HTML string.


  4. What's new

     

    Core:

    Completely new CSS subsystem - faster and less memory.
    MathML support.
    Compatibility with Lazarus 2+.
    FMX: Hints support.
    Animated GIFs for FMX (all platforms) and VCL Delphi 5+.
    CSS columns support.
    CSS tabstops support.
    Improved recovering of incorrect tag order.
    Added :only-of-type selector
    DX canvas: added support for rotated arcs in paths.
    THtImageListSource now works with ImageList on data module.

     

    Editor:

    Format painter button.
    Clear formatting button.
    Columns button
    Math equation editor.
    Adding ability to combine two adjacent lists by pressing Del
    DOCX import: added support for math equations.
    Footnotes

     

    Reports/SQL:

    FastReport FMX component
    ReportBuilder component
    SQL: ConvertWheretoJoins now can reorder tables.
    Compatibility with VTV 6.7

     

    Fixed

     

    Core:

    Value none was processed incorrectly for max-width/max-height
    Incorrect document position when using native iOS canvas and non-zero offset.
    Incorrect processing of multiple fonts in font-family.
    Incorrect layout when absolute element has inline containing block.
    SVG: correct processing path 'a' command with sibling flags with no divider.
    GDI canvas issue when SVG use clip path.
    FMX: fixed SVG elements position when using viewbox
    Vertical placement of inline blocks
    Artifacts when using native Android canvas on some resolutions.

     

    Editor:

    DOCX import: fixed superscript style
    'Pop from empty editor stack' error.
    AV when deleting selection
    Eempty list item cannot be deleted.
    Style is not applied to selected cells when selection is reverced (from bottom to top)
    Delimiter is added to first word causing incorrect spell checking
    AV when pressing space at endf of line after changing text style
    Selection is incorrect after applying text transform


    Reports/Scripter

    Scripter: AV when registering class having same name as record helper.
    Scripter: incorrect call to parent method when using inherited property.
    Wrong target in script drag events.
    FastReport: HTML is exported to PDF as image

     

    Trial version:

    http://delphihtmlcomponents.com/editor41trial.zip

     

     

    • Like 1
    • Thanks 1

  5. 3 minutes ago, Cristian Peța said:

    I think to get rid of RTF so I can go cross-platform but from your website I don't see how much is subscription.

    Subscription is around 50% of license price + 15% discount increased by 5% every year of continued subscription.


  6. 44 minutes ago, Alberto Fornés said:

    I imagine that this feature improves the basic HTML rendering within fastreport, it can be used with dynamic HTML content?, I mean HTML generated from a server as svg graphics or content with variable dimensions?

    You can use SVG images defined via href, standard FR DB fields (as shown in video) which may contains HTML too, or load complete HTML using http or other protocol,  but last one requires overriding one component method.

    • Like 2
×