Word Processor

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
Tuxion
Prole
Posts: 14
Joined: Mon Jan 08, 2018 6:31 pm

Word Processor

Post by Tuxion »

Hi, I'm a beginner in programming

Sorry for my poor English.

I'm trying to program a word processor to type the letters and numbers that we want one after the other, but I haven't found a way to do it...

Do you have any examples?
Xugro
Party member
Posts: 114
Joined: Wed Sep 29, 2010 8:14 pm

Re: Word Processor

Post by Xugro »

Here is a very small example. This shows you the basic idea.
Attachments
simple_wordprocessor.love
(282 Bytes) Downloaded 141 times
Tuxion
Prole
Posts: 14
Joined: Mon Jan 08, 2018 6:31 pm

Re: Word Processor

Post by Tuxion »

Thanks ! But if i want to use the backspace to delete one letter at a time, how do i do that?
User avatar
rougan
Citizen
Posts: 58
Joined: Wed Aug 12, 2015 10:30 am

Re: Word Processor

Post by rougan »

Tuxion wrote: Tue Oct 16, 2018 11:33 am Thanks ! But if i want to use the backspace to delete one letter at a time, how do i do that?
Have a look here:
https://love2d.org/wiki/love.textinput
There's an example for erasing text when backspace is pressed. :nyu:
Tuxion
Prole
Posts: 14
Joined: Mon Jan 08, 2018 6:31 pm

Re: Word Processor

Post by Tuxion »

Thank you! it works but I don't understand what this utf8 is for, what is its function?

I see a require but I don't have the utf8.lua, how can it work?
User avatar
NotARaptor
Citizen
Posts: 59
Joined: Thu Feb 22, 2018 3:15 pm

Re: Word Processor

Post by NotARaptor »

Hi Tuxion - the linked page explains what it is and why it is used, and has a link to the library itself.
User avatar
pgimeno
Party member
Posts: 3655
Joined: Sun Oct 18, 2015 2:58 pm

Re: Word Processor

Post by pgimeno »

utf8 is a LÖVE built-in library. Other built-in libraries are socket and enet, and from LuaJIT, ffi and jit.
User avatar
ivan
Party member
Posts: 1915
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

Re: Word Processor

Post by ivan »

UTF8 allows you to use strings containing non English characters.
Tuxion
Prole
Posts: 14
Joined: Mon Jan 08, 2018 6:31 pm

Re: Word Processor

Post by Tuxion »

ok thanks i have what i need
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 7 guests