Skip to content

Commit

Permalink
ADDED: Finish all characters of cross mode
Browse files Browse the repository at this point in the history
Only one unicode cross function is retained,
then the logic is implemented through table lookup.
The code was reduced by nearly 1000 lines.
  • Loading branch information
qindapao authored and nkh committed Oct 14, 2023
1 parent fddaa33 commit 2f95154
Show file tree
Hide file tree
Showing 4 changed files with 204 additions and 519 deletions.
2 changes: 1 addition & 1 deletion lib/App/Asciio/Actions/Clipboard.pm
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ use open qw( :std :encoding(UTF-8) ) ;
open CLIPBOARD, "| xsel -i -b -p" or die "can't copy to clipboard: $!" ;
local $SIG{PIPE} = sub { die "xsel pipe broke" } ;

print CLIPBOARD $self->transform_elements_to_zim_wiki_buffer($self->get_selected_elements(1)) ;
print CLIPBOARD $self->transform_elements_to_markup_buffer($self->get_selected_elements(1)) ;
close CLIPBOARD ;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/App/Asciio/Ascii.pm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ return($text) ;

#-----------------------------------------------------------------------------

sub transform_elements_to_zim_wiki_buffer
sub transform_elements_to_markup_buffer
{
my ($self, @elements) = @_ ;

Expand Down
Loading

0 comments on commit 2f95154

Please sign in to comment.