Skip to content

watermanos/Changeinlinecsss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTML File Modifier

This program allows you to modify and edit multiple HTML files within a folder. It uses the HtmlAgilityPack library to parse and manipulate the HTML content.

The program is specifically designed for the modification of excerpts from books published by the NOMIKI BIBLIOTHIKI Group (Νομική Βιβλιοθήκη), helping format and organize the documents more efficiently.

The program performs various modifications, such as:

  • Modifying elements with page numbers (PAGENUMBER class).
  • Modifying elements with side numbers (SIDENUMBER class).
  • Modifying titles and headings (e.g., KEFALAIO-TITLOS, PRAKTIKO classes).
  • Removing <a> tags, footnotes, and <br> tags.
  • Replacing <li> tags with <p> tags for better layout.
  • Modifying elements with the dir='rtl' attribute to ltr.

Features

  • Processes and modifies multiple HTML files in a specified folder.
  • CSS styling modifications for better presentation (center-aligned text, bold, etc.).
  • Removes unwanted tags and content (e.g., <a>, footnotes).
  • Replaces list tags (<li>) with paragraph tags (<p>).

Requirements

To run this program, you will need:

How to Use

  1. Download or Clone this repository.
  2. Ensure that the HtmlAgilityPack library is installed via NuGet.
  3. Run the program.
  4. The program will prompt you to enter the path of the folder containing the HTML files.
  5. Once the folder is selected, it will iterate through all .html files and apply the defined modifications.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contribution

Feel free to open issues or pull requests if you encounter any bugs or want to contribute improvements.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages