summaryrefslogtreecommitdiffstats
path: root/parsers/Images.java
Commit message (Collapse)AuthorAgeFilesLines
* updated the year in the Copyright block in all source files.rsiddharth2013-11-021-2/+1
| | | | used license/Liberate.java to do the job. automation rocks.
* parsers/Images.java: minor change to the alt text block.rsiddharth2013-11-021-2/+2
|
* modified: parsers/Images.java (`alt' attribute constructs itself nicely now)rsiddharth2013-06-261-2/+2
|
* modified: parsers/Images.java (now scruffy-markup accepts svg images)rsiddharth2013-04-271-1/+1
|
* modified: parsers/Images.java (Pattern for image recognitionrsiddharth2013-03-231-1/+1
| | | | | | | | | | | | | | | | | | | | updated. Now scruf can detect images with png|jpg|jpeg extension)x -------------- This line and the following will be ignored -------------- === modified file 'parsers/Images.java' --- a/parsers/Images.java 2012-11-30 13:18:40 +0000 +++ b/parsers/Images.java 2013-03-23 13:00:50 +0000 @@ -28,7 +28,7 @@ private String openTag = "<img src=\"$1\" alt=\" \\[$"; private String closeTag = " />"; public String parse(String fileContent) { - Pattern pattern = Pattern.compile("\\{\\{(.+?\\.(png|jpg))(\\|(.+?))?\\}\\}", Pattern.DOTALL); + Pattern pattern = Pattern.compile("\\{\\{(.+?\\.(png|jp[e]?g))(\\|(.+?))?\\}\\}", Pattern.DOTALL); Matcher matcher = pattern.matcher(fileContent); StringBuffer sbuffer = new StringBuffer(); StringBuilder replacementString =new StringBuilder();
* minor-fix(es) to comply with standardsrsiddharth2012-11-301-2/+2
| | | | | | | modified: index/IndexCreator.java (added space after the link mark-up) parsers/Images.java (now the string for the alt parameter in the <img> will be surrounded by square brackets)
* removed:rsiddharth2012-10-251-1/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | notes writefile added: COPYING -- gpl text (full) modified: Initialization.java Scruf.java conversion/CanConvert.java conversion/ConvertDirectory.java conversion/ConvertFile.java conversion/FileSieve.java index/IndexCreator.java io/PresentFile.java io/ReadFile.java io/WriteFile.java license/Liberate.java parsers/BackButton.java parsers/CodeBlocks.java parsers/DocumentName.java parsers/Footer.java parsers/Header.java parsers/Headings.java parsers/Images.java parsers/LineBreak.java parsers/Links.java parsers/NullIt.java parsers/Paragraphs.java parsers/ParserList.java parsers/WordDecoration.java styling/StyleChecker.java >> All the .java files were 'baptized' for 100% software freedom. todo -- minor edit. license/gpl -- minor edit again.
* conversion/FileSieve.java: modified the regex to ignore backup file (#*#).rsiddharth2012-06-261-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | parsers/Footer.java: Aesthetic modification. parsers/Header.java: add "meta" tags for the html output, mainly for compliance sake. I have also re-arranged the html tags a bit -- the "back button" is now the last thing in the <article> block. parsers/Images.java (bug-fix): The regex had small precisely deducting images, so the regex was slightly modified to make all work properly. There was another significant change made to the way the image tag is created -- "alt" is mandatory now, even if the markup doesn't give a "alt" for the <img> tag, a default "alt" is created -- the image-file-name. parsers/Links.java: From now on, the links generated will not have 'target="_blank"`, I felt that the reader must choose whether to open the link in a new window/tab, so the change. Period. In the last revision, link description was made optional in the link mark-up, the regex was slightly erroneous, I rectified it. parsers/Paragraphs.java: As of this revision, the <p> generation is still rough around the edges, I need to smoothen it in future revisions. parsers/ParserList.java: Order of parser list was modified -- now, Paragraphs comes before Headings, it was the reverse before.
* Images.java && Links.java (bug fix) : regex modified to properly parse the ↵rsiddharth2012-06-251-3/+6
| | | | | | | | respective mark-up when the marked-uped a a whole runs into more than one line. Before this modification the "marked-uped" lines which ran into two (or more) different lines were not properly parsed, by these parsers, and thus was not properly converted. With this fix, things _seem_ to work good.
* conversion/ConvertDirectory.java: only a small addition -- to print out the ↵rsiddharth2012-06-241-3/+12
| | | | | | | | | | | | | | file that is under "conversion" conversion/FileSieve.java: update the regex to ignore hidden files, ".ttf" files. parsers/Header.java: * Now the blog post goes bettween the <article> & </article> tag, Header class was modified to reflect this change. * "Powered by scruf" line must go at the bottom of every html page that is generated by this program, Header class was modified to reflect this. parsers/Images.java: I have modified the "regex" and relevant code to make the "image description" optional.
* Two files were modified (bug fix):rsiddharth2012-06-241-3/+1
| | | | | | | | --> conversion/FileSieve.java : regex modified to ignore hidden files. --> parsers/Images.java : html tag (for image) was erroneous, it was rectified and as a consequence we got rid of 3 lines of code.
* scruf is "bzr"ed now.rsiddharth2012-06-231-0/+20