Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I merge Javascript files into one file? #4

Closed
gusbemacbe opened this issue Oct 13, 2016 · 9 comments
Closed

Can I merge Javascript files into one file? #4

gusbemacbe opened this issue Oct 13, 2016 · 9 comments

Comments

@gusbemacbe
Copy link

Hello,

Can I merge hyphen.js and many Javascript patterns files into one?

Thank you!

Gustavo

@ytiurin
Copy link
Owner

ytiurin commented Oct 13, 2016

Hi @gusbemacbe,

Technically you can merge many pattern files together, every pattern collection will live in hyphenationPatterns[Locale_code] variable, for example hyphenationPatternsEnGb or hyphenationPatternsDe; or can be imported using AMD or Node import.

var hyphenationPatternsDe = require('patterns/de');

Then you initiate your hyphenate function with createHyphenator

var hyphenate = createHyphenator(hyphenationPatternsDe);

@gusbemacbe
Copy link
Author

I updated to GitHub pages. I copied these codes and pasted into HTML file and it did not work. I also copied the codes from your JSFiddle demo and it did not work either. I do not know why. My template got ugly and I do not know how to fix it.

Please, check my HTML file:
https://github.com/gusbemacbe/bootstraphyphen/blob/master/teste.html

And to view the page:
https://gusbemacbe.github.io/bootstraphyphen/teste.html

@ytiurin
Copy link
Owner

ytiurin commented Oct 13, 2016

@gusbemacbe there's a resource loading problem on your demo page, press F12 and check the Console tab in your browser

@gusbemacbe
Copy link
Author

I'm using a Mac and F12 took me to the Dashboard. What is the button in Mac?

@gusbemacbe
Copy link
Author

I got. Here's the console result.

Console Screenshot

Do I have to change HTTP to HTTPS?

And how to fix the Github links?

@ytiurin
Copy link
Owner

ytiurin commented Oct 13, 2016

@gusbemacbe I made a Pull request for your demo page, merge it with your project

@ytiurin
Copy link
Owner

ytiurin commented Oct 13, 2016

@gusbemacbe in short, you should load files from other origins through https protocol and use root paths './' to load local files

@gusbemacbe
Copy link
Author

I merged, but the texts disappeared. I thought that with adding of id= home ka doesn't work for multiples attributes in an id.

@ytiurin
Copy link
Owner

ytiurin commented Oct 13, 2016

@gusbemacbe I opened an issue in your project, lets continue conversation there

@ytiurin ytiurin closed this as completed Oct 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants