LINE BREAKING ALGORITHM FOR MINIMIZING THE APPEARANCE OF RAGS AND RIVERS IN TEXT ALIGNMENT: LEFT ALIGNED, CENTER ALIGNED, RIGHT ALIGNED, AND JUSTIFIED

This Final Project aims to optimize the line breaking algorithm to achieve better text layout and aesthetics in applications such as typography and graphic design. Line breaking plays an important role in determining the distribution of text across lines so as to minimize visual distractions such as...

Full description

Saved in:
Bibliographic Details
Main Author: Alhadi Ramadhani, Aditya
Format: Final Project
Language:Indonesia
Online Access:https://digilib.itb.ac.id/gdl/view/75122
Tags: Add Tag
No Tags, Be the first to tag this record!
Institution: Institut Teknologi Bandung
Language: Indonesia
id id-itb.:75122
spelling id-itb.:751222023-07-25T11:09:50ZLINE BREAKING ALGORITHM FOR MINIMIZING THE APPEARANCE OF RAGS AND RIVERS IN TEXT ALIGNMENT: LEFT ALIGNED, CENTER ALIGNED, RIGHT ALIGNED, AND JUSTIFIED Alhadi Ramadhani, Aditya Indonesia Final Project algorithm, dynamic programming, graphic design, line breaking, optimization, rags, rivers, text layout, typography INSTITUT TEKNOLOGI BANDUNG https://digilib.itb.ac.id/gdl/view/75122 This Final Project aims to optimize the line breaking algorithm to achieve better text layout and aesthetics in applications such as typography and graphic design. Line breaking plays an important role in determining the distribution of text across lines so as to minimize visual distractions such as rags and rivers. The level of rags represents the balance of row length, while the number of rivers measures the occurrence of visually distracting space gaps. Here we focus on three line breaking algorithms, namely Line-by-line, Dynamic Programming-1, and Dynamic Programming-2. Each algorithm is evaluated based on its ability to minimize the appearance of rags and rivers. The analysis is carried out for three type of given text alignment: left (right) aligned, center aligned, and justified (left-right aligned). The sample used to evaluate each algorithm is Lorem Ipsum which consists of 104 words with line lengths of 81, 77, and 83. These line lengths were chosen because at line length ranges of 45—90, the Line-by-line, Dynamic Programming-1, and Dynamic Programming-2 line breaking algorithms have the lowest minimum cost values at line lengths of 81, 77, and 83, respectively. text
institution Institut Teknologi Bandung
building Institut Teknologi Bandung Library
continent Asia
country Indonesia
Indonesia
content_provider Institut Teknologi Bandung
collection Digital ITB
language Indonesia
description This Final Project aims to optimize the line breaking algorithm to achieve better text layout and aesthetics in applications such as typography and graphic design. Line breaking plays an important role in determining the distribution of text across lines so as to minimize visual distractions such as rags and rivers. The level of rags represents the balance of row length, while the number of rivers measures the occurrence of visually distracting space gaps. Here we focus on three line breaking algorithms, namely Line-by-line, Dynamic Programming-1, and Dynamic Programming-2. Each algorithm is evaluated based on its ability to minimize the appearance of rags and rivers. The analysis is carried out for three type of given text alignment: left (right) aligned, center aligned, and justified (left-right aligned). The sample used to evaluate each algorithm is Lorem Ipsum which consists of 104 words with line lengths of 81, 77, and 83. These line lengths were chosen because at line length ranges of 45—90, the Line-by-line, Dynamic Programming-1, and Dynamic Programming-2 line breaking algorithms have the lowest minimum cost values at line lengths of 81, 77, and 83, respectively.
format Final Project
author Alhadi Ramadhani, Aditya
spellingShingle Alhadi Ramadhani, Aditya
LINE BREAKING ALGORITHM FOR MINIMIZING THE APPEARANCE OF RAGS AND RIVERS IN TEXT ALIGNMENT: LEFT ALIGNED, CENTER ALIGNED, RIGHT ALIGNED, AND JUSTIFIED
author_facet Alhadi Ramadhani, Aditya
author_sort Alhadi Ramadhani, Aditya
title LINE BREAKING ALGORITHM FOR MINIMIZING THE APPEARANCE OF RAGS AND RIVERS IN TEXT ALIGNMENT: LEFT ALIGNED, CENTER ALIGNED, RIGHT ALIGNED, AND JUSTIFIED
title_short LINE BREAKING ALGORITHM FOR MINIMIZING THE APPEARANCE OF RAGS AND RIVERS IN TEXT ALIGNMENT: LEFT ALIGNED, CENTER ALIGNED, RIGHT ALIGNED, AND JUSTIFIED
title_full LINE BREAKING ALGORITHM FOR MINIMIZING THE APPEARANCE OF RAGS AND RIVERS IN TEXT ALIGNMENT: LEFT ALIGNED, CENTER ALIGNED, RIGHT ALIGNED, AND JUSTIFIED
title_fullStr LINE BREAKING ALGORITHM FOR MINIMIZING THE APPEARANCE OF RAGS AND RIVERS IN TEXT ALIGNMENT: LEFT ALIGNED, CENTER ALIGNED, RIGHT ALIGNED, AND JUSTIFIED
title_full_unstemmed LINE BREAKING ALGORITHM FOR MINIMIZING THE APPEARANCE OF RAGS AND RIVERS IN TEXT ALIGNMENT: LEFT ALIGNED, CENTER ALIGNED, RIGHT ALIGNED, AND JUSTIFIED
title_sort line breaking algorithm for minimizing the appearance of rags and rivers in text alignment: left aligned, center aligned, right aligned, and justified
url https://digilib.itb.ac.id/gdl/view/75122
_version_ 1822994163695616000