This forum has been archived. All content is frozen. Please use KDE Discuss instead.

html mark text

Tags: None
(comma "," separated)
jusmeistar
Registered Member
Posts
8
Karma
0

html mark text

Wed Aug 10, 2022 4:57 am
Hello

In kdenlive 22.04.3 I tried to mark text with <mark> or <span style=#FFD700> or <bgcolor=#FFD700> etc. Nothing worked.
Whats the correct html-order?

Thanks
Merlimau
Registered Member
Posts
986
Karma
8

Re: html mark text

Sun Aug 14, 2022 12:58 pm
Where do you want to apply the html code? Title clip or in a subtitle.
User avatar
Makinars-Studio
Registered Member
Posts
86
Karma
3
OS

Re: html mark text

Sat Aug 20, 2022 7:41 pm
I assume you are trying to create a subtitle, since we have a text editor to modify the titles:

SRT supports markup for: bold, italic, underline, text color and line break.

<b>text in boldface</b>
<i>text in italics</i>
<u>text underlined</u>
<font color="#00ff00"> text in green </font> you can use the font tag only to change color.

And all combined: <font color="#00ff00"><b><i><u>All combined</u></i></b></font>
Line break: Add on the end of each line a <br> (for break). Now the .srt file is stored correct and reopened with the line break. The subtitle in the subtitle window will be all in 1 line after several save but the breaks is working.

Alt + arrow jumps from subtitle to subtitle.

------------------------------------- ;)

Now if you want the mark for title clip, I don't know maybe for some script because we already have a title clip editor to change the text settings, then here you have the structure:

Code: Select all
<kdenlivetitle duration="125" LC_NUMERIC="C" width="1920" height="1080" out="125">

    <item type="QGraphicsTextItem" z-index="0">
        <position x="337" y="481">
            <transform>1,0,0,0,1,0,0,0,1</transform>
        </position>

        <content line-spacing="0" shadow="0;#64000000;3;3;3" font-underline="0" box-height="117" font="DejaVu Sans" letter-spacing="0" font-pixel-size="100" font-italic="0" typewriter="0;2;1;0;0" alignment="1" font-weight="75" box-width="1245.31" font-color="255,215,0,255">
        ----> YOUR TEXT HERE
        </content>
    </item>

    <startviewport rect="0,0,1920,1080"/>
    <endviewport rect="0,0,1920,1080"/>
    <background color="0,0,0,0"/>

</kdenlivetitle>




Bookmarks



Who is online

Registered users: Bing [Bot], gfielding, Google [Bot], Sogou [Bot]