Related Job Oriented Programs

This is an online course on Practical Projects of Python Programming where you will be learning about two projects i.e. about Instant Markup and Pdf Images.

3h 32m | 19 Videos | 20546 Views | Expert

About Practical Projects of Python programming

This is an online course on Practical Projects of Python Programming where you will be learning about two projects i.e. about Instant Markup and Pdf Images. In this project, you learn how you can create graphics in Python. More specifically, you create a PDF file with graphics helping you visualize data that you read from a text file.

While you could get such functionality from a regular spreadsheet, Python gives you much more power, as you’ll see when you get to the second implementation and automatically download your data from the Internet.PDF is a format created by Adobe that can represent any kind of document with graphics and text.

The PDF file is not really editable (as, say, a Microsoft Word file would be), but there is reader software freely available for most platforms, and the PDF file should look the same no matter which reader you use or which platform you are on (as opposed to HTML, with which the correct fonts may not be available, you would normally have to ship pictures as separate files, and so on). Python is excellent for analyzing data.

With its file-handling and string-processing facilities, it’s probably easier to create some form of report from a data file than to create something similar in your average spreadsheet, especially if what you want to do requires some complicated programming logic.

We want to add some formatting to a plain-text file. Let’s say you’ve been handed the file from someone who can’t be bothered with writing in HTML, and you need to use the document as a web page. Instead of adding all the necessary tags manually, you want your program to do it automatically.

In recent years, this sort of “plain-text markup” has, in fact, become quite common, probably mainly because of the explosion of wiki and blog software with plain-text interfaces. Our task is basically to classify various text elements, such as headlines and emphasized text, and then clearly mark them.

In the specific problem addressed here, you add HTML markup to the text, so the resulting document can be displayed in a web browser and used as a web page. However, once you have built your basic engine, there is no reason why you can’t add other kinds of markup (such as various forms of XML or perhaps LATEX codes).

After analyzing a text file, you can even perform other tasks, such as extracting all the headlines to make a table of contents. You may not be able to reach these goals fully in the first version of your program, but that’s the point of the prototype, you write the prototype to find flaws in your original ideas and to learn more about how to write a program that solves your problem.