summaryrefslogtreecommitdiff
path: root/src/lib/text_content.cc
AgeCommit message (Collapse)Author
2025-07-10Replace String::compose with fmt.Carl Hetherington
sed -i "/Plural-Forms/n;/%100/n;/scanf/n;s/%[123456789]/{}/g" src/lib/*.cc src/lib/*.h src/wx/*.cc src/tools/*.cc src/lib/po/*.po src/wx/po/*.po src/tools/po/*.po test/*.cc sed -i "s/String::compose */fmt::format/g" src/lib/*.cc src/lib/*.h src/wx/*.cc src/tools/*.cc test/*.cc
2025-05-11Cleanup: use constexpr for content and player properties.Carl Hetherington
Also fix a clash between the ATMOS and player properties.
2025-05-10White space: text_content.{cc,h}Carl Hetherington
2025-03-24Basic support for variable-Z 3D subtitles.Carl Hetherington
2025-01-05Bump libdcp for raw_convert changes.Carl Hetherington
raw_convert<string> is gone, so here we use fmt::{to_string,format} instead. Other raw_converts now use fast_float.
2024-04-21Extract all uses of DCP-o-matic name to allow branding.Carl Hetherington
2024-03-20Remove all use of add_child() from xmlpp.Carl Hetherington
2024-01-28Normalise XML attribute names to be camelCase (#2241).Carl Hetherington
2023-07-02Don't insert incorrect <Effect> nodes into metadata (#2581).Carl Hetherington
Previously we would add assume Effect=none (i.e. force all subtitles to have no effect) if neither of the legacy tags Border or Shadow were present in the metadata. In this case we should just leave Effect as unset.
2023-02-27Cleanup: swap a list for a vector.Carl Hetherington
2022-06-10Add some missing locking.Carl Hetherington
2022-06-10Make it OK to re-examine content with subtitles.Carl Hetherington
2022-06-07Rearrange subtitle font management.Carl Hetherington
With this change each subtitle coming out of the player has a reference to a dcpomatic::Font that belongs to the TextContent. This hopefully solves a few problems which all basically stemmed from the fact that previously the decoders/player were deciding what the font ID in the output DCP would be - they can't do that properly.
2021-09-19Fix failure to open v2.14.x documents with invalid or empty subtitle ↵Carl Hetherington
languages (#2085).
2021-05-09Remove erroneous call to optional_node_child().Carl Hetherington
Just after this we loop over all <Text> nodes, and optional_node_child will raise an exception if there is more than one.
2021-04-06Remove erroneous defaulting of text language to en_US.Carl Hetherington
2021-03-31Put subtitle language back into content from the film (#1930).Carl Hetherington
This also adds the main/additional language flag. Of all the considerations about how to specify subtitle language, the most important seems to be that the language specification happens for the content where the language is; i.e. in the content text tab.
2021-01-31Use enum class for Film::Property.Carl Hetherington
2021-01-31More enum class additions.Carl Hetherington
2021-01-21Adapt for libdcp use of enum class.Carl Hetherington
2021-01-08c++ tidying.Carl Hetherington
2021-01-07BOOST_FOREACH.Carl Hetherington
2021-01-07std::shared_ptrCarl Hetherington
2020-11-20Remove subtitle language from text content.Carl Hetherington
2019-05-10Put Time types in dcpomatic namespace.Carl Hetherington
2019-05-04Include video_frame_rate in TextContent identifier so that if (forCarl Hetherington
example) some SRT subs are being burnt and their video frame rate is changed we won't try to reuse the video that has been burnt with the subs at the old frame rate.
2019-01-27Remove specification of italic/bold fonts (#1451); synthesis will be used ↵v2.13.110Carl Hetherington
instead.
2018-09-11Increase the number (in arbitrary units) which describes the widthCarl Hetherington
of the border on DCP subtitles when they are rendered in the preview. This makes them look better, and I think it's closer to what projectors do.
2018-08-23Basics of selecting 'tracks' for CCAPs.Carl Hetherington
2018-08-22Revert "Store a name with text content."Carl Hetherington
This reverts commit 2571104b6a208fa00b2c98d50f97849c3e7fa6c9.
2018-08-22Store a name with text content.Carl Hetherington
2018-08-20Make ContentChange into a generic ChangeSignaller and use it for Filmv2.13.44Carl Hetherington
changes, since we setup_pieces() in response to at least one of these and hence we must know before it happens so we can suspend the butler and player.
2018-08-14More fixes for errors / crashes / misbehaviour with content changesCarl Hetherington
and the butler. Here we signal both before and after a change in content. Before, the player disables itself so that any pass()/seek() will be no-ops. After, the player rebuilds its pieces and the butler re-seeks to get back to where it was before the change.
2018-07-25Fix loading of old projects.v2.13.39Carl Hetherington
2018-07-25Fix problems with loading projects with captions / subs.Carl Hetherington
2018-07-23Introduce the idea of unknown original subtitle type to clean up the GUI a bit.Carl Hetherington
2018-07-23Tidy up after mass rename.Carl Hetherington
2018-07-23More automated renaming.Carl Hetherington
ActiveCaptions -> ActiveText BitmapCaption -> BitmapText ContentCaption -> ContentText ContentTextCaption -> ContentStringText TextCaptionFileContent -> StringTextFileContent TextCaptionFileDecoder -> StringTextFileDecoder TextCaptionFile -> StringTextFile TextCaption -> StringText PlayerCaption -> PlayerText CaptionContent -> TextContent CaptionDecoder -> TextDecoder CaptionPanel -> TextPanel CaptionView -> TextView CaptionAppearanceDialog -> SubtitleAppearanceDialog CaptionType -> TextType
2018-07-19Clean up after previous commit.Carl Hetherington
2018-07-19UI for selecting caption type.Carl Hetherington
2018-07-19Add type for text content (CCAP/subtitle).Carl Hetherington
2018-07-19Rename Subtitle -> TextCarl Hetherington
sed -i "s/SubtitleContent/TextContent/g" src/lib/*.cc src/lib/*.h src/wx/*.cc src/wx/*.h src/tools/*.cc test/*.cc sed -i "s/SubtitleDecoder/TextDecoder/g" src/lib/*.cc src/lib/*.h src/wx/*.cc src/wx/*.h src/tools/*.cc test/*.cc sed -i "s/subtitle_content/text_content/g" src/lib/*.cc src/lib/*.h src/wx/*.cc src/wx/*.h src/tools/*.cc test/*.cc src/lib/wscript src/wx/wscript sed -i "s/subtitle_decoder/text_decoder/g" src/lib/*.cc src/lib/*.h src/wx/*.cc src/wx/*.h src/tools/*.cc test/*.cc src/lib/wscript mv src/lib/subtitle_decoder.cc src/lib/text_decoder.cc mv src/lib/subtitle_decoder.h src/lib/text_decoder.h mv src/lib/subtitle_content.cc src/lib/text_content.cc mv src/lib/subtitle_content.h src/lib/text_content.h mv src/lib/dcp_subtitle_decoder.cc src/lib/dcp_text_decoder.cc mv src/lib/dcp_subtitle_decoder.h src/lib/dcp_text_decoder.h mv src/lib/dcp_subtitle_content.cc src/lib/dcp_text_content.cc mv src/lib/dcp_subtitle_content.h src/lib/dcp_text_content.h mv src/lib/text_subtitle_content.cc src/lib/text_text_content.cc mv src/lib/text_subtitle_content.h src/lib/text_text_content.h mv src/lib/text_subtitle_decoder.cc src/lib/text_text_decoder.cc mv src/lib/text_subtitle_decoder.h src/lib/text_text_decoder.h mv src/wx/timeline_subtitle_content_view.cc src/wx/timeline_text_content_view.cc mv src/wx/timeline_subtitle_content_view.h src/wx/timeline_text_content_view.h