| Testo :: flusso Testo flessibile che scorre e word wrapping per non solo uscita ASCII |
Scarica ora |
Testo :: flusso Classifica e riepilogo
- Licenza:
- Perl Artistic License
- Nome editore:
- Stevan Little
- Sito web dell'editore:
- http://search.cpan.org/~stevan/
Testo :: flusso Tag
Testo :: flusso Descrizione
Testo flessibile che scorre e word wrapping per non solo uscita ASCII Testo :: Flow č un modulo perl che fornisce un modo flessibile per avvolgere e fluire il testo per uscite ASCII e non ASCII.Synopsis utilizzare il testo: flusso; # Usalo su ASCII Text ... My $ flow = testo :: flusso-> nuovo (check_height => sub {my $ paras = shift; somma (mappa {scalare @ $ _} @ $ Paras) Testo :: Flow: : Avvolgere-> nuovo (check_width => sub {lunghezza ($ _ ) <70})); my @sections = $ flusso-> flusso ($ testo); # @sections sarą ora una serie di stringhe, ogni stringa # non conterrą pił di 10 linee di testo ciascuna delle quali # non sarą pił di 70 caratteri lunghi o usarlo sul testo in un file PDF ... My $ flusso = testo :: flusso-> nuovo (check_height => sub {my $ paras = shift; (somma (mappa {scalare @ $ _} @ $ paras) * $ pdf-> get_font_height) <200;} wrapper => Testo :: Flow :: wrap-> nuovo (check_width => sub {my $ string = shift; $ pdf-> get_string_width ($ string) <100}); my @sections = $ flusso-> flusso ($ testo); # @sections sarą ora una serie di stringhe, ogni stringa # conterrą il testo che si adatta entro 200 PTS e # ogni linea non sarą pił di 100 PTS ampia requisiti: · Perl.
Testo :: flusso Software correlato