Pdf to wikitext




















The images would need to be added to OWW separately, the table also didn't come out quite right and centered text was no longer centered.

A direct converter can be found here. A series of Word macros for doing simple conversions including tables is here ; they seem to work reasonably well but aren't designed for sophisticated layouts.

Also, with the release of OpenOffice , 2. I have had good success with the following steps for porting images embeddded in word documents to MediaWiki format on a Mac:. Not a lot here, even the. Improve table formatting e. One may want to manually add horizontal lines or section headings, in order to separate different slides. While the content of text boxes is exported fine, they are not preserved as elements - in particular, their formatting e. So in case they carry extra formatting, one needs to recreate the boxes manually in the wiki version, e.

NB: Cropping of images done inside Google Drive will not be preserved, i. For vector images, it's preferable to export them as SVG instead. Upload the images to Commons manually and insert them into the new wiki page.

Repeat until no double spaces remain. Fix any text laddering. Some of it can be done with find-and-replace. Save the text file. Add column header text as necessary. Test in one of your user sandboxes as necessary to get things working right. The easiest way is to remove all the header wikitext and styling; and then replace it with the header wikitext at en:List of countries by incarceration rate.

Note: " c. It is no longer necessary to put " c " in a separate column though. See: en:Help:Sorting. After moving " c " save again. Keep a separate copy of this. It may be needed for the country linking option explained in the shaded box farther down. Next, click the replace command from the search menu of NoteTab. It pulls up the find-and-replace form. It can be used to quickly find and remove any remaining HTML. To add country linking and flag icons go directly to the shaded box farther down , and skip this section.

Then remove the rest of the HTML used for the country links. Click " replace all. It replaces it with styling that aligns the country names to the left. The names are easier to read that way. Then replace the remaining HTML using the regular expression method. Those 2 changes should make all the country names into wikilinks, and adds flag icons in front of them.

It also aligns the country text to the left. In some country lists created this way some of the country links may have to be created manually. This is because there is a need to create redirects to the country names used for these links.

Fortunately, nearly all the redirects have been created for this country list. For the combined UK number for England and Wales add this manually to keep both flags:. Also add this for Sint Maarten :. Country links and flag icons are not absolutely necessary in country lists. Timely updating of the list is more important. If you want flags and country links, and you want to be able to rapidly update a list you may need to create some redirects.

To do so search here for the templates to redirect to. Add the country or territory name to the search. Do some additional manual cleaning, if necessary, to get rid of the rest of the HTML. There shouldn't be a need to do so for en:List of countries by incarceration rate. For example; see List of countries by incarceration rate. A column for notes if necessary is instantly added by adding another column with the Visual Editor VE. See the VE section of Help:Table.

For consistency use the same reference for all the countries and territories possible. That reference link is placed above the table. If rates for additional countries or territories are found they can be entered in the table, and info about the sources can be put in the notes section below the table. Long notes no longer break row numbering. See en:Help:Sorting sections about row numbering. See: Commons:PDF to image files. Freeware IrfanView , and many other image editors , is useful for adding text to charts and other images.

Open a chart in IrfanView. Crop the chart as needed. The smaller the margins, the better for the chart showing up more clearly in Wikipedia articles at smaller sizes. Click on the chart where you want text to begin, and drag a large rectangle box where the text will be inserted. Make it large since text will not extend outside the box. The box lines do not remain after you finish editing the image. After you have drawn a box go to the edit menu, and click on "insert text". For ease of use pick left alignment in the dialog box that pops up.

This way the text will start at the top left of the large box you drew on the image. Pick your font and color from the dialog box.

Then click "preview" in the dialog box. The text will be inserted temporarily in the large box. The background will not be effected if the background is set to "transparent" in the dialog box. Change your settings until you get what you want in the preview. Then click "OK" in the dialog box.

Save the image when you are done. Copy and paste the table into a new spreadsheet in LibreOffice Calc. Save in the default. Once saved follow the relevant instructions in the section higher up called " Web to LibreOffice Calc to tab2wiki ".

Then copy and paste the table into tab2wiki. Sometimes you can paste a PDF chart into a Kompozer page. After doing so, select the chart text on the Kompozer page. Then click "create table from selection" in the table menu. Choose between commas or spaces depending on what was used to separate the columns. Save the page as an HTML web page. Some of the previous sections refer to PDF files.

Wikipedia has a comprehensive list of PDF software. Much of it is free and open source. Much of it is free, or free to try. Click "free" link in the left sidebar for freeware.

Initial sort is by downloads last week. Recent popularity is usually a good comparative guide to ease of use. Two programs that can do this are:. Maybe you need to work on some tables, and prefer to work in Excel :.

Convert xls, xlsx, etc. No other formatting. So they are great for converting to clean wikitext tables. Microsoft Word converters. The charts can be converted to images by using the "Print Screen" key on a keyboard. Image editors can then be used to capture and crop the chart found on the screenshot.

For example; there is the free, popular, easy-to-use Irfanview. Use it to resize charts, remove watermarks, crop unused space from around the edges, and so on. Irfanview can also losslessly compress PNG images so as to use less kilobytes for the same image without any loss in image quality.

Install the Irfanview plugin pack too. Copy the list table from the reader view of a Wikipedia page not from wikitext. Paste into tab2wiki. This removes the flags, and leaves the full country, state, or subnational area names. This is very helpful when dealing with flag templates that use acronyms for those areas.

This is also useful for using these tables in wikis outside Wikipedia that do not have the necessary flag templates. This also works for many HTML tables from any site where you want to remove flags and other graphics. This is useful for many charts and maps.



0コメント

  • 1000 / 1000