rsff

Crates.iorsff
lib.rsrsff
version1.0.0
sourcesrc
created_at2023-11-17 06:35:38.978551
updated_at2023-11-17 06:35:38.978551
descriptionCore library of an application designed to facilitate the work of teams translating content such as manga, manhwa, manhua, webtoons, etc.
homepage
repositoryhttps://github.com/NandeMD/rsff
max_upload_size
id1038764
size51,343
(NandeMD)

documentation

README

rsff

rsff` (scanlation file format) is the core library of an application designed to facilitate the work of teams translating content such as manga, manhwa, manhua, webtoons, etc.

Some Examples:

use rsff::Document;
use rsff::balloon::Balloon;

// Create a default document.
let mut d: Document = Document::default();

// Create a default balloon.
let mut b: Balloon = Balloon::default();

// Add content to the balloon.
b.tl_content.push("This is a translation line.".to_string());

// Add balloon to the document.
d.balloons.push(b);

Basic Raw SFF XML File:

<Document>
    <Metadata>
        <Script>Scanlation Script File v0.2.0</Script>
        <App></App>
        <Info>Num</Info>
        <TLLength>9</TLLength>
        <PRLength>6</PRLength>
        <CMLength>0</CMLength>
        <BalloonCount>2</BalloonCount>
        <LineCount>2</LineCount>
    </Metadata>
    <Balloons>
        <Balloon type="OT">
            <TL>num</TL>
            <TL>nam</TL>
            <PR>numnam</PR>
        </Balloon>
        <Balloon type="Dialogue">
            <TL>num</TL>
        </Balloon>
    </Balloons>
</Document>
Commit count: 10

cargo fmt