SDL Trados Studio
SDL Trados GroupShare
SDL Trados Business Manager
SDL Trados Live
SDL MultiTerm
SDL Passolo
SDL Speech to Text
SDL Managed Translation - Enterprise
SDL MultiTrans
SDL TMS
SDL WorldServer
Translation Management Connectors
SDL LiveContent S1000D
SDL Contenta S1000D
SDL XPP
SDL Tridion Docs
SDL Tridion Sites
SDL Content Assistant
SDL Machine Translation Cloud
SDL Machine Translation Connectors
SDL Machine Translation Edge
Language Developers
Tridion Developers
Tridion Docs Developers
Xopus Developers
Community Help
SDL User Experience
Language Products - GCS Internal Community
SDL Community Internal Group
SDL Access Customer Portal
SDL Professional Services
SDL Training & Certification
Style Guides
Language Technology Partner Group
SDL Academic Partners
SDL Enterprise Technology Partners
XyUser Group
ETUG (European Trados User Group) Public Information
Machine Translation User Group
Nordic SDL Tridion Docs User Group
SDL Tridion UK Meetup
SDL Tridion User Group New England
SDL Tridion West Coast User Group
SDL WorldServer User Group
Tridion Docs Europe & APAC User Group
Tridion User Group Benelux
Tridion User Group Ohio Valley
SDL MultiTerm Ideas
SDL Passolo Ideas
SDL Trados GroupShare Ideas
SDL Trados Studio Ideas
SDL Machine Translation Cloud Ideas
SDL Machine Translation Edge Ideas
SDL Language Cloud TMS Ideas
SDL Language Cloud Terminology Ideas
SDL Language Cloud Online Editor Ideas
SDL Managed Translation - Enterprise Ideas
SDL TMS Ideas
SDL WorldServer Ideas
SDL Tridion Docs Ideas
SDL Tridion Sites Ideas
SDL LiveContent S1000D Ideas
SDL XPP Ideas
Events & Webinars
To SDL Documentation
To SDL Support
What's New in SDL
Detecting language please wait for.......
Has anyone tried to make use of the embedded content function in the HTML file type?
I have a file, where beside the html code such content is included:
<h1>ESG Report{% if preview %} - <strong>Preview</strong>{% endif %}</h1>
As the complete text would perfectly work with HTML, I would like simply to exclude the { } content. So I just assumed, I add this to plain text (I added {{1,2}.*?}{1,2} as inline tag) in the embedded content processors and activate that in the html parser, but id does not work.
So what I am doing wrong here?
The problem in row 24 is caused by a crippled content of the source file - the line 157 is wrong.
Instead of
</li {% if preview %}class="preview"{% endif %}>
it should be
</li>
Jerzy Czopik
Hard to tell with such a sparse description of what you did. I tested this and it works fine so this is what I did. First I set up the embedded content rule:
Then I edited the embedded content plan text filetype like this:
See if that helps.
Hi Paul
You are the greatest, but it won't work...
The file in question is attached.
The problem here are tags like list element (standard html tag), but it contains also text in { }. This is why I am until now not able to write a regex text file type. So I tried to use HTML with embedded content. But even if I add the same regex as you or {[^}]*}, it seems not to work. I am really puzzled by that file...
index.html.zip
Hi Jerzy Czopik
Helps to see your file :-)
Try something like this:
And I changed the rule to this:
{{.+?}}|{.+?}
Seemed cleaner. It's not perfect but I'm sure you'll be able to finish it off from here. The only stuff you can't handle is the crap at the top which shouldn't really be there anyway so you'd have to simply lock those segments.
Thank you. I cannot find an element called DIV...
The list is unfortunately not clearly sorted. Where can I find this necessary element?
I could not find it either so I created it!
Oh, thanks.
When I look through the file, there are still some bad points...
For example in row 24:
I have added "ordered list" in the structure information, but it won't work either.
Any idea how to avoid this remaining strings? For example the string {{ page4_title(rimpact, "Overall Sustain-able Impact") }} remains untouched, even if the regex in Regexbuddy works perfectly to cover it...
And how did you add the element sdl:div? By typing "sdl:div" in the "Use custom structure information" or adding it where?
</li> <li{% if preview %}class="preview"{% endif %}>