-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #196 from hpi-swa-teaching/more-class-comments
Updated more class comments
- Loading branch information
Showing
16 changed files
with
41 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 12 additions & 1 deletion
13
packages/RichTextEditing-Core.package/RichTextHTMLExportStrategy.class/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
I am a RichTextHTMLExportStrategy. | ||
I export a document to a file by first converting all applied structures, as long as a matching HTML structure is found and then inserting the appropriate HTML tags when a structure starts or ends. | ||
I export a document to a file by first converting all applied structures, as long as a matching HTML structure is found (lookup by name), | ||
and then inserting the appropriate HTML tags when a structure starts or ends. | ||
To do this, I use the RichTextDocumentReadStream and implement methods that react to its stop conditions. | ||
I also take care of lists, where I convert line feeds and paragraphs to new list items. | ||
|
||
My instance variables are: | ||
outputString - stores the current state of the string that is written to the file in the end | ||
eventHandlingDictionary - maps stop conditions to methods | ||
currentStructures - structures that are active at current location in input text | ||
document - document to export | ||
fileStream - stream that the outputString is written to in the end (represents the file to save to) | ||
openingStrings - dictionary that maps structures to HTML opening tags | ||
closingStrings - dictionary that maps structures to HTML closing tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
I am a RichTextHTMLTemplate. | ||
|
||
I specify structures that can be used to style the text in a HTML-like formatting. | ||
Currently, it does mirror the RichTextMarkdownTemplate, since the two formats contain similar structures. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
packages/RichTextEditing-Core.package/RichTextHelp.class/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
I am a class containing help topics on SquidWord. The help provided by me is included automatically in the Squeak system help. | ||
I am a class containing help topics on SquidWord. The help provided by me is automatically included in the Squeak system help. | ||
|
||
You can add a new help page by creating a new method on class side returning a HelpTopic and adding the selector of the new method in the #pages method. | ||
It is recommended to edit the text of a help topic using the HelpBrowser. | ||
It is recommended to edit the text of a help topic inside the HelpBrowser (simply alter the text of the page and press Ctrl-S to save). | ||
The respective method for this topic will then be updated automatically. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
...ges/RichTextEditing-Core.package/RichTextMarkdownExportStrategy.class/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
I am a RichTextMarkdownExportStrategy. | ||
I export a document to a file by using the HTML export option, because exporting to Markdown syntax has some issues and HTML is also valid markdown. | ||
I export a document to a file by using the HTML export option, because exporting to Markdown syntax has some issues and HTML is also valid markdown. | ||
|
||
Some issues encountered while trying to export to markdown syntax: | ||
- nested structures (especially of the like that is not possible in markdown, e.g. heading inside of an heading, citation inside an url...) | ||
- bold/italic/etc. are not rendered correctly in markdown, if the enclosed text starts or ends with a space |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters