Aufgabe
Ihre Aufgabe ist es, einen Text in mittelalterliche Rechtschreibung umzuwandeln.
Einzelheiten
jwird iniundJnach konvertiertI.uundUam Anfang von Worten zu umgewandeltvundVjeweils.vundVan jedem Ort , außer Anfang Worte umgewandeltuundUjeweils.swird inſ(U + 017F) konvertiert, es sei denn am Ende des Wortes oder vor einem anderens.
Technische Daten
- Ein Wort ist definiert als eine Folge von Buchstaben in
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ. - Alle Wörter haben mindestens zwei Buchstaben.
- Die Eingabe besteht nur aus druckbaren ASCII-Zeichen (U + 0020 - U + 007E).
- Es werden nicht mehr als zwei aufeinanderfolgende Vorkommen auftreten
s. Das heißt, esssswird keine Teilzeichenfolge der Eingabe sein.
Testfälle
Individuelle Wörter:
Input Output
------------------------
Joy Ioy
joy ioy
Universe Vniuerſe
universe vniuerſe
Success Succeſs
successfull ſucceſsfull
Supervise Superuiſe
supervise ſuperuiſe
Super-vise Super-viſe
I've I've
majors maiors
UNIVERSE VNIUERSE
0universe 0vniuerſe
0verify 0verify
I0ve I0ve
_UU_ _VU_
_VV_ _VU_
ss_ ſs_
Ganzer Absatz:
Input: Christian Reader, I have for thy use collected this small Concordance, with no small labour. For being to comprise much in little roome, I was to make choyse of the most principall and usefull places, and to rank them under such words as I thought most essentiall and materiall in the sentence, because the scant roome allotted unto me, would not permit that I should expresse them under every word in the verse, as it is the manner in large Concordances.
Output: Chriſtian Reader, I haue for thy vſe collected this ſmall Concordance, with no ſmall labour. For being to compriſe much in little roome, I was to make choyſe of the moſt principall and vſefull places, and to rank them vnder ſuch words as I thought moſt eſsentiall and materiall in the ſentence, becauſe the ſcant roome allotted vnto me, would not permit that I ſhould expreſse them vnder euery word in the verſe, as it is the manner in large Concordances.
Der SHA-256- Hash der Ausgabe des letzten Testfalls lautet:
5641899e7d55e6d1fc6e9aa4804f2710e883146bac0e757308afc58521621644
Haftungsausschluss
Die mittelalterliche Orthographie ist nicht so konsequent. Bitte beschweren Sie sich nicht, wenn Sie alte Bücher mit einer anderen Rechtschreibung lesen.
ſals 1 Byte zählen?
Super-visewerden Super-viſe?