OpenOffice ODM (OpenDocument Master Document) format - format

In development of a text editor application, I came across a need to test an .ODM format (OpenDocument Master Document) support. I tried searching OpenOffice documentation for samples, but failed to find any.
Please suggest where to find such samples.

You can make them with OpenOffice.org Writer.
I did it once just to see how it worked.
OK, I am using the ODF 1.2 Specification Part 3 because it is not too large but has several chapters.
So I opened OpenDocument-v1.2-cs01-part3.odt (actually using LibreOffice 3.3.2 but OpenOffice.org 3.3.0 and earlier work the same way).
On the menu bar select File | Send > Create Master Document
This will give you a Name and Path of Master Document dialog, with Save as type set to ODF Master Document (*.odm).
I navigated the Save dialog to the folder where I wanted to save the Master and its parts. I then specified MasterDocDemo. There's a Template setting pull-down which defaults to Outline Level 1. I left that alone and clicked "Save." I ended up with an 8-part document:
MasterDocDemo.odm
MasterDocDemo1.odt
MasterDocDemo2.odt
...
MasterDocDemo7.odt
Do that yourself with something that has chapters or something with headings at Outline Level 1 and then explore.

Opendocument format 1.1 specification on schemacentral
You can find all type of open document format specification provided by OASIS here. (including v1.1, v1.2)
LibreOffice and OOo supports this format. To create ODF master doc you can export odt files to odm from Lo or OOo.

Related

Some of text are not converting to installed arabic language pack, how to change them?

I have installed an arabic language pack for a magento 1.9 project but some text is not getting changed to arabic language. How to change them?
Please follow these steps:
Go to your backend: Admin > System > Configuration > Developer
Select Arabic store view scope on the top left
Set Translate Inline > Enabled for Frontend to Yes
Now you are able to translate text on the store view frontend
The language pack has some CSV in app/locale folder, open the CSV files and put your text with the appropriate targeted language in CSV manner.
If you describe where is the text, it may help me to describe in more details

Sphinx contents search results

I am currently using the read the doc theme for sphinxdoc version 1.4.6. When I search contents the queries display the title and the start of restructure text files instead of the the title and start of the html page. Is there any possible way I can change that?
Try the sphinx extension "sphinxprettysearchresults" (https://pypi.python.org/pypi/sphinxprettysearchresults).
Their website says this:
To display search results, Sphinx is fetching the source files of search hits and rendering excerpts in raw markup (Example).
This extension removes the markup from these source files (during build time), so the search results look decent.
However, when I load it on my project, I get an error, which I will have to report.
Maybe it works fine in your project.

How to link from a Sphinx document into a CHM file?

How can I link from a Sphinx document into a CHM file?
It seems that I could link from one chm file into another using a syntax like
<a href="ms-its:path+filename.chm::/pagename.htm">
Is it possible to transfer this into Sphinx commands?
You know, opening a topic compiled into a CHM is possible with Microsoft Internet Explorer only (!) by adding following code in a HTML file:
<p>Sample of CHM link to a topic in a compiled help file that is stored on a local computer</p>
<!-- To link to a topic in a compiled help file that is stored on a local computer, create a link using the following syntax: -->
Link to Garden topic here
I think, the reStructuredText parser cannot transfer these special kind of link from the source (reST).
But you can use the Replacement Text like shown below. Please note, the backslash is used twice:
================
Replacement Text
================
I recommend you try |HTMLHelp|_ and continue compiling help in CHM file format.
.. |HTMLHelp| replace:: CHM, *the* best help format around
.. _HTMLHelp: ms-its:D:\\UserData-Sphinx\\CHM-example.chm::/garden/garden.htm
The "replace" directive is used to indicate replacement text for a substitution reference. It may be used within substitution definitions only.
The resulting HTML file view:
The compiled help CHM:
The topic garden.htm is shown in the Help Viewer's topic pane after the link iswas clicked:
You may download the above used CHM-example.chm file from my HTMLHelp (HH) info site see download section or download CHM.
Please note, to open this CHM file right-click the saved file, click Properties, and then click Unblock.

Is there support for XML code hinting / completion in Sublime Text 2?

I am giving Sublime Text 2 a try and I was editing an XML file - that had a DOCTYPE declaration and a DTD - and there seems to be no way to get code hinting / completion when editing the XML document.
I am sure its something simple I am overlooking. I cannot imagine Sublime does not have this kind of functionality, even if provided via a plugin.
Can someone shed some light on this for me?
Sublime Text is first and foremost a text editor.
But, the reason for it's popularity is in large part due to it's extensibility.
Although you could use Sublime's api to create a specific plug-in to do this, Sublime has a few tools that are already helpful in editing xml files and other markup files on a bare install.
Hinting and completions in particular are very easy to add. It shouldn't take a more than few minutes to create a domain specific sublime-completions file for your particular xml.
You can use alt+shift+w to create an xml element, in addition alt+. will close any un-closed xml element.
You may also want to try the Sublime Tag plug-in available through Package Control
Lastly you could also bring this up in the Sublime forums as a plug-in request. There are a lot of helpful folks in the plug-in community.
You can use the 'tag' plugin from Sublime Package Control. It has auto tag closing, linting and other features. The github page for the project is here: https://github.com/SublimeText/Tag
You can install it using Package Control without leaving your Sublime text editor.

How to use the existing Png-Shell-Thumbnail for my file types?

I am currently writing an application working with specially prepared image data. Another tool prepares the images (basically PNGs with additional data stored in the meta-data section). Now my tool works with these files, but not with all PNGs, so "we" decided to use a different file extension. So far, so good.
Now, because I am a lazy sack I implemented some file type registration to allow double-clicking on the file and opening it in my application (no problem at all).
And here is my Question:
It would be cool if the windows explorer could still show me the thumbnail previews for my files. Since they basically are still PNG files, it should be possible without writing my own shell extension (at least I believe so).
I quickly tried to copy all registry keys and values from HKCR.png to HKCR.mInDat (my file name ext) and it worked. However, I would prefere knowning what I am doing ;-)
Which of the registry settings are responsible for the thumbnail preview control and which can I use to get the preview for my file types?
I tried to google it, but I failed, since it seems I am unable to come up with the right buzz-words to find the info I need. Please, help me.
Thank you!
Yours,
3of4
Simple:
[HKEY_CLASSES_ROOT\.apng]
#="apng"
"Content Type"="image/png"
"PerceivedType"="image"
[HKEY_CLASSES_ROOT\apng\shellex\{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}]
#="{3F30C968-480A-4C6C-862D-EFC0897BB84B}"

Resources