80 replies to this topic
Re: Subtitle and Italic #41
Re: Subtitle and Italic #42
Posted 29 January 2011 - 23:59
Not the best code I wrote in my life but this should quick fix the </i><i> and anyway it's better than text = text.substr(3, text.length()-7);
https://github.com/l...5ca3ec669daa65c
https://github.com/l...5ca3ec669daa65c
Re: Subtitle and Italic #43
Re: Subtitle and Italic #44
Posted 30 January 2011 - 00:18
Regarding a font to be used for Italic I would suggest to look into Ubuntu Italic font:
http://font.ubuntu.com/
http://font.ubuntu.com/
Re: Subtitle and Italic #45
Posted 30 January 2011 - 00:26
Actually I have found that there is already an italic font in the /usr/share/fonts folder: hdi.ttf
So what about to modify /usr/share/enigma2/skin_subtitles.xml in this way
So what about to modify /usr/share/enigma2/skin_subtitles.xml in this way
<skin> <fonts> <font filename="valis_enigma.ttf" name="Subs" scale="100" /> <font filename="hdi.ttf" name="Subsi" scale="100" /> </fonts> <subtitles> <sub name="Subtitle_TTX" font="Subs;34" borderColor="#000000" borderWidth="3" /> <sub name="Subtitle_Regular" font="Subs;34" foregroundColor="#ffffff" borderColor="#000000" borderWidth="3" /> <sub name="Subtitle_Bold" font="Subs;34" foregroundColor="#ffffff" borderColor="#000000" borderWidth="3" /> <sub name="Subtitle_Italic" font="Subsi;34" foregroundColor="#ffffff" borderColor="#000000" borderWidth="3" /> </subtitles> </skin>
Re: Subtitle and Italic #46
Re: Subtitle and Italic #47
Re: Subtitle and Italic #48
Posted 30 January 2011 - 11:39
I would go for color codes... make italic yellow and bold (light) green... I know it is a work-a-round but with help of the color escape codes we could simply make some replacements. (replace <i> by escape code for yellow, replace </i> by escape code for white etc..).
In addition the subtitle fonts could be stripped down to just one... the sub font.
Please note this is just a suggestion... And I think even better then loading different fonts.
Pieterg, I still do not understand 100% how the color excape codes are working. Was it \cXXXXXXXX were XXXXXXXX is the color in hex code?
In addition the subtitle fonts could be stripped down to just one... the sub font.
Please note this is just a suggestion... And I think even better then loading different fonts.
Pieterg, I still do not understand 100% how the color excape codes are working. Was it \cXXXXXXXX were XXXXXXXX is the color in hex code?
Re: Subtitle and Italic #49
Re: Subtitle and Italic #50
Posted 31 January 2011 - 13:52
Pieterg, I still do not understand 100% how the color excape codes are working. Was it \cXXXXXXXX were XXXXXXXX is the color in hex code?
I added an eString cast operator in gRGB I believe, to do the job. (or the other way around, a + gRGB operator in eString, don't remember exactly)
Re: Subtitle and Italic #51
Re: Subtitle and Italic #52
Re: Subtitle and Italic #53
Re: Subtitle and Italic #54
Re: Subtitle and Italic #55
Re: Subtitle and Italic #56
Posted 2 February 2011 - 13:52
;-) Thanks...
For me it was a complicated patch if we really want to do italic an bold in the correct way... -or- this simple one.
I want to remove the faces here en select the Sub font on also a nice simple way. But I'm scared that some skins may not work... so a bit of it I have to keep in there.
For me it was a complicated patch if we really want to do italic an bold in the correct way... -or- this simple one.
I want to remove the faces here en select the Sub font on also a nice simple way. But I'm scared that some skins may not work... so a bit of it I have to keep in there.
Re: Subtitle and Italic #57
Posted 3 February 2011 - 21:30
Hi!
I am wondering if it's just me who has these problem
I have update yesterday evening (GMT+1) and I have these symptoms:
1) Italic is rendered this way
2) Many segments are not displayed at all.
Could anyone give it a try with a .srt file in the media player?
I am wondering if it's just me who has these problem
I have update yesterday evening (GMT+1) and I have these symptoms:
1) Italic is rendered this way
FIRST LINE SECOND LINE LAST LINE
2) Many segments are not displayed at all.
Could anyone give it a try with a .srt file in the media player?
Re: Subtitle and Italic #58
Re: Subtitle and Italic #59
Re: Subtitle and Italic #60
Also tagged with one or more of these keywords: Enigma2
IPTV
M3U playlist handling pluginStarted by DimitarCC, 22 Aug 2024 IPTV, M3U, Enigma2 |
|
|||
m3u/xml?Started by MatthijsNL, 18 Dec 2020 ENIGMA2 |
|
|||
Looking for a good explanation of calculate, calibrate and allocate in positioner setup menuStarted by jeandubois, 19 Nov 2019 enigma2 |
|
|||
Bestand beschermen tegen overschrijven bij software updateStarted by mimisiku, 23 Feb 2019 Enigma2 |
|
|||
plugin extensions epgimport rytec not visibleStarted by arkovda, 19 Aug 2018 enigma2, plugin extension and 2 more... |
|
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users